标签:val ring eid 字符类型 引号 user exec use color
sql语句里面调用变量的话有两种情况,一种是字符类型,一种是整型、浮点型之类的数字
db1.Execute("insert DataInformation values(‘" + user + "‘,‘" + list2[j].PlaceID + "‘," + list2[j].VELO + "," + list2[j].F + "," + list2[j].SS + "," + list2[j].R + ",‘" + date.ToString() + "‘," + list2[j].V + "," + list2[j].VP + "," + list2[j].L + ")");
如代码所示,字符型就单引号括起来双引号。数字类型的就直接写就ok了
标签:val ring eid 字符类型 引号 user exec use color
原文地址:http://www.cnblogs.com/yunquan/p/7383050.html