C# sql 查询语句 where 等于一个参数总是出错

2024-12-15 17:54:05
推荐回答(1个)
回答1:

string sqlQuery = "select 编号ID,订单状态 from DingDanMsg where 编号ID='BHID333'";

ID='BHID333' 要用单引号括起来