SQL判断字符串是否为空

<%if rs("LX_logo")<>"" then%><img1 /><%else%><img2 /><%end if%>-为什么ELSE后面的东东没显示呢
我SQL表里面的字段类型是varchar
怎样判断SQLSERVER里面某字段为空?用ASP写的.
我如下判断无效:
if rs("name")="" then yuju1 else yuju2 end if
为什么我的数据库里有两种空字段的类型呢?一种是NULL的,一种是TRIM(NAME)为空,为什么会出现两种?这两种都是没有数据的.iaskall回答的挺全的,谢谢!

if if rs("name")="" or isnull(rs("name")) then yuju1 else yuju2 end if
温馨提示:内容为网友见解,仅供参考
第1个回答  2007-03-26
if not(IsNull(Lrs("name"))) then yuju1 else yuju2 end if
第2个回答  2007-03-26
name is NULL
相似回答
大家正在搜