随笔分类 -  SQL Server

SqlServer
摘要:create trigger 触发器名称 on 对哪个表起作用 after insert,update as if @@rowcount =0 return set nocount on begin transaction; insert into 表名 (col1,col2,col3,...... 阅读全文
posted @ 2016-01-04 17:08 芝麻学问 阅读(2586) 评论(0) 推荐(0)
摘要:使用replace替换字段中的字符如:替换production表中的specification字段中的两个空格为一个空格:update production set specification =replace(specification,' ',' ') 阅读全文
posted @ 2015-06-11 17:38 芝麻学问 阅读(6598) 评论(0) 推荐(0)
摘要:企业管理器 SQL Server 阅读全文
posted @ 2015-04-21 11:56 芝麻学问 阅读(788) 评论(0) 推荐(0)