当前位置:Gxlcms > 数据库问题 > SQL常用语句

SQL常用语句

时间:2021-07-01 10:21:17 帮助过:21人阅读

1、修改表中某属性 

     alter table 表名 alter column 列名 varchar(10)

2、删除原来的列

    alter table 表名 drop column 列名

3、将某列属性设置成自增(如果原属性存在需要先删除)

     alter table 表名 add uid int identity(100,1) primary key

 

SQL常用语句

标签:int   column   char   nbsp   语句   修改   har   tab   alter   

人气教程排行