sql "')' 附近有语法错误
stringsql="insertintoPotatoMiao(PotatoName,bozhongqi,chumiaoqi,chumiaolv,xianleiqi,ka...
string sql = "insert into PotatoMiao (PotatoName,bozhongqi,chumiaoqi,chumiaolv,xianleiqi,kaihuaqi,chengshuqi,shengyutianshu,jingyanse,yeyanse,huaguanse,huafanmaoxing,tianranjieshixing,MiaoPuID,PotatoImage)";
sql += "values('{0}','{1}','{2}','{3}','{4}','{5}','{6}',{7},'{8}','{9}','{10}','{11}','{12}',{13},'{14}',)";
sql = string.Format(sql,objPotatoMiao.PotatoName,objPotatoMiao.bozhongqi,objPotatoMiao.chumiaoqi,objPotatoMiao.chumiaolv,objPotatoMiao.xianleiqi,objPotatoMiao.kaihuaqi,objPotatoMiao.chengshuqi,objPotatoMiao.shengyutianshu,objPotatoMiao.jingyanse,objPotatoMiao.yeyanse, objPotatoMiao.huaguanse,objPotatoMiao.huafanmaoxing,objPotatoMiao.tianranjieshixing,objPotatoMiao.MiaoPuID,objPotatoMiao.PotatoImage);
不知道哪里错了 求大神啊 展开
sql += "values('{0}','{1}','{2}','{3}','{4}','{5}','{6}',{7},'{8}','{9}','{10}','{11}','{12}',{13},'{14}',)";
sql = string.Format(sql,objPotatoMiao.PotatoName,objPotatoMiao.bozhongqi,objPotatoMiao.chumiaoqi,objPotatoMiao.chumiaolv,objPotatoMiao.xianleiqi,objPotatoMiao.kaihuaqi,objPotatoMiao.chengshuqi,objPotatoMiao.shengyutianshu,objPotatoMiao.jingyanse,objPotatoMiao.yeyanse, objPotatoMiao.huaguanse,objPotatoMiao.huafanmaoxing,objPotatoMiao.tianranjieshixing,objPotatoMiao.MiaoPuID,objPotatoMiao.PotatoImage);
不知道哪里错了 求大神啊 展开
2个回答
展开全部
"values('{0}','{1}','{2}','{3}','{4}','{5}','{6}',{7},'{8}','{9}','{10}','{11}','{12}',{13},'{14}',)";
最后是不是多了个“,”?
最后是不是多了个“,”?
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询