...Provider for SQL Server (0x80040E14)在关键字 'and' 附近有语法错...
发布网友
发布时间:2024-01-20 02:26
我来回答
共2个回答
热心网友
时间:2024-08-09 13:47
and (show)and(not delmark) ???
没有此语法!
and (show is not null) and (delmark is null)
--意思是show不为null delmark为null
热心网友
时间:2024-08-09 13:46
sql="SELECT * FROM webitem WHERE ((parentid='"&pid&")and (show)and(not delmark) order by sort)"
这一句改成
sql="SELECT * FROM webitem WHERE parentid='"&pid&"' and show not delmark order by sort"