05 2022 档案
摘要:--创建不为空列 alter table 表名 add 列名 int not null default 0 go --删除字段 alter table 表名 drop column 列名 go --修改列名称 exec sp_rename '表名.列名','新名称' 字段设置默认值 alter ta
阅读全文
摘要:游标嵌套 BEGIN TRANSACTION; --事务declare @resourceId int --节Id declare @newResourceId int --新的节Id declare @courseId int --课程Id declare @newCourseId int --新
阅读全文