无法使用"select 字段 from 表 where 字段='' 来判断被初始化过的ntext类型的字段是否为空值,可以使用datalength()函数来解决,例如:"select * from article where datalength(consul)=0'',逻辑感觉加基础知识,能写出很美妙的程序来,打好基础知识,然后到实战中找感觉。
注:以上是基础实战中又发现另外一个问题 NULL 的 DATALENGTH 的结果是 NULL所以我重写了以上语句"select * from article where datalength(consul)=0 or consul is null"