以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]SQLFIND哪里出错了呢  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=176128)

--  作者:81538475
--  发布时间:2022/3/31 18:25:00
--  [求助]SQLFIND哪里出错了呢
Dim dr As DataRow =  CurrentTable.DataTable.SQLFind("_identify =\'"& CurrentTable.Current("_identify") &"\'and 备注=\'"& CurrentTable.Current("备注") &"\'")
If dr Is Nothing Then
Output.Show(1)
End If

为什么备注列的时候会找不到呢。如果换成非备注列,就没有问题。

convert(varchar(255), 备注)  这么转换一下是可以了。但是如果备注列什么都没有的话,就不行了

[此贴子已经被作者于2022/3/31 18:25:37编辑过]

--  作者:有点蓝
--  发布时间:2022/3/31 20:14:00
--  
到后台数据库里把备注列从ntext类型改为nvarchar(max)