SqlCommand com= new SqlCommand("insert into enterprice(storeid,isrent,sarea,sstreet) values('"+ this.sph.Text +"','"+ spq.Text+ "','" + spd.Text + "','"+ RedioButton1.Text + "')",con);红色的在DB中的INT型,系统提示:将 varchar 值 'N' 转换为数据类型为 int 的列时发生语法错误。
调试欢乐多
spq.Text
spd.Text
RedioButton1.Text
都是int么?