用word替换sql语句的重复部分 [英] replace repeating part of sql statement with word

查看:210
本文介绍了用word替换sql语句的重复部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想知道有什么方法可以减少我的打字,同时重复一次又一次重复一部分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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆