摘要:
T-SQL中,有时判断一个变量是否为NULL时,有人可能会用到函数ISNULL,如:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->DECLARE@VAR1VARCHAR(20)DECLARE@VAR2INTIFISNULL(@VAR1,'')=''PRINT'@VAR1isnull.'IFISNULL(@VAR2,-1)=-1PRINT'@VAR2isnull.'这种用法其实是 阅读全文
posted @ 2012-09-14 14:44 且行且思 阅读(1724) 评论(0) 推荐(0) 编辑