用word替换sql语句的重复部分 [英] replace repeating part of sql statement with word
问题描述
大家好,我想知道有什么方法可以减少我的打字,同时重复一次又一次重复一部分sql进行大项目。
赞
CREATE table mast_jobskilltype(skilltypeID int(11)not null auto_increment primary key,skilltype varchar(50)not null unique);
'int(11)not null auto_increment primary几乎每个表都重复了'key'
同样重复'varchar(50)not null unique'。
我们可以用一个单词替换这些长语句吗?
如果你使用的是Visual Studio, CodeSnippets [ ^ ]可能适合您...
Hi everyone, I want to know is there any way to reduce my typing while making big project with repeating a part of sql again and again.
Like
CREATE table mast_jobskilltype(skilltypeID int(11) not null auto_increment primary key,skilltype varchar(50) not null unique);
the 'int(11) not null auto_increment primary key' is repeated in almost every table
similarly 'varchar(50) not null unique' is repeated.
Can we replace these long statements with just one word?
if you're using Visual Studio, CodeSnippets [^]might work for you...
这篇关于用word替换sql语句的重复部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!