1.数字前补0:
select rtrim(10000 + @t, 4)
2.存储过程传入多个参数:
EXEC sp_executesql @sql, N'@type int,@artno varchar(100)', @type, @artno
3.=NULL与IS NULL不相同
(a)UDF或SP,SET要写在正文最前面(WHY, 但SET NOCOUNT ON又不需要?)
这样的SET只会影响到UDF/SP自身范围;
(b)SET ANSI_NULLS OFF后,两者相同.
(b)SET ANSI_NULLS OFF后,两者相同.
转载于:https://www.cnblogs.com/nonlyli/archive/2009/03/16/1413641.html