首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

mysql中sql语句改成sqlserver语句如何去写

2012-01-08 
mysql中sql语句改成sqlserver语句怎么去写whereattribute mobilephoneandattributevalueandnotisnull(a

mysql中sql语句改成sqlserver语句怎么去写
where   attribute= 'mobilephone '   and                     attributevalue   <>   ' '     and   not   isnull(attributevalue)   and   userid   in   (3)

isnull()函数返回0或者1可是sqlserver中我不知道该怎么去写,而且我把0或1带进去提示:指定了非布尔类型的表达式。不知道在mysql能不能运行,高手能告诉我在sqlserver该怎么去写吗谢谢!

[解决办法]
where attribute= 'mobilephone ' and attributevalue <> ' ' and attributevalue is not null
[解决办法]
where attribute= 'mobilephone ' and attributevalue <> ' ' and attributevalue is not null and userid in (3)

[解决办法]
not isnull(attributevalue) 改成 attributevalue is not null

热点排行