String sql = string.Format("update goods set gooname='{0}',goospecial='{1}'," +
"goonumber={2},gooprice={3},busiid={4} where goodid={5}",
txtbGooName.Text.Trim(),
txtbGooSpecial.Text,
txtbGooNumber.Text,
txtbGooPrice.Text,
cmbBusiId.SelectedValue,
_goodid);
想读取文本框中的数据,然后修改数据库中的数据,但number和price是int和money类型的,一旦文本框中为空就会报错,求助
一条有盐值的咸鱼
K1aus
随时随地看视频慕课网APP
相关分类