0
喜我尝试从一个数据库更新从Windows点,但林不知道我是怎么从一个变量“totalPoints”被插入到“点”字段中,从数据库中infromation更新SQL查询
using (OleDbConnection conn = new OleDbConnection(strCon))
{
String sqlPoints = "UPDATE points FROM customer WHERE [customerID]="
+ txtCustomerID.Text;
conn.Open();
conn.Close();
}
感谢您的帮助!
好的,谢谢il将其更改为参数化查询!我如何让它更新表中的所有字段,例如从0到25? – Bunion
这就是你的意思:更新顾客SET分数= 25 WHERE customerid = 1 – sgeddes