SQL语句小细节
在写sql语句的时候,注意些小细节,不小心就搞混了
- DECLARE @str VARCHAR(20)
- SET @str=LEFT ('a',0)
- PRINT @str
- IF @str = '' PRINT '空'
- set @str = left(null,0)
- if @str is null print 'null'
转载于:https://blog.51cto.com/shijie/528748
在写sql语句的时候,注意些小细节,不小心就搞混了
转载于:https://blog.51cto.com/shijie/528748