U r right.example:
--------------------------------
declare @amount int
if @amount is not null
print 1
else
print 2/*
--
2
*/
--------------------------------
declare @amount int
if @amount is not null
print 1
else
print 2/*
--
2
*/
我用的是MSDE2000,没有查询分析器。另外代码里的print,结果在哪里能看到?
这个是错的,
@amount=''那么len(@amount)=0
但是长度为0,但是,不是null