随笔分类 - SQL Server
SqlServer
摘要:create trigger 触发器名称 on 对哪个表起作用 after insert,update as if @@rowcount =0 return set nocount on begin transaction; insert into 表名 (col1,col2,col3,......
阅读全文
摘要:使用replace替换字段中的字符如:替换production表中的specification字段中的两个空格为一个空格:update production set specification =replace(specification,' ',' ')
阅读全文