dt1.Select("BindUID='" + model.Uid + "'").Length == 0和dt1.Select("BindUID=\"" + model.Uid + "\").Length == 0区别是:
第一句语句是正确的,第二与回报错误!
原因是在liqn查询的所有语句都是按sql的语法编写的,第二句中BindUID=\"" + model.Uid + "\" 字符串连接后的“"”在sql中是无法解释的!
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3