cmdCommandText = insert into testidaa&&bb values 语法有错误吗?
这个语法有错误。应该将 && 替换为 &,因为 && 不是 SQL 语句中的运算符。正确的语法应该是:
cmd.CommandText = "insert into test(id,aa,bb) values (?,?,?)"
原文地址: https://www.cveoy.top/t/topic/fcuj 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
这个语法有错误。应该将 && 替换为 &,因为 && 不是 SQL 语句中的运算符。正确的语法应该是:
cmd.CommandText = "insert into test(id,aa,bb) values (?,?,?)"
原文地址: https://www.cveoy.top/t/topic/fcuj 著作权归作者所有。请勿转载和采集!