mysql sql语句参数问题
Sb梁先生 2013-08-13 03:02:28 string sqlSelectSourceCount = @"SELECT COUNT(*) from sourceTable";
DbCommand commCount = db.GetSqlStringCommand(sqlSelectSourceCount);
db.AddInParameter(commCount, "sourceTable", DbType.String, sourceTable);
我要替换表明,可是这样sql语句执行报错,
就是替换参数的时候错了。怀疑 把sourceTable 替换成了‘表明’