2017-09-05 12 views
0

空值删除数据库中的一行在试图从我的数据库在SQL松鼠我收到以下错误删除行。不能与文本型列

enter image description here

现在,这种情况发生时,文本类型的列有值“”(如空) 当有null,则删除时没有错误。

这是为什么?如果我将列转换为类型varchar(max)而不是文本,并且在那里有任何可能的危险,它会有帮助吗?

+0

[本](https://stackoverflow.com/questions/12706669/error-in-in-select-data-from-table-in-sql-server/12706694#12706694)显然是相同的或相关的问题。 – MatSnow

回答

0
An empty string is a string with zero length or no character. Null is absence of data 


used delete statement with [text-type column ='' OR text-type column is NULL]