我这个格式语句有错误吗?string sql = string.Format("insert into Student (SNO,SNAME,XINAME,SEX,BRIDAY,COM) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", no, name,xiname,sex,bir,com);

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/06 20:21:39
我这个格式语句有错误吗?stringsql=string.Format("insertintoStudent(SNO,SNAME,XINAME,SEX,BRIDAY,COM)values(''{0}'',

我这个格式语句有错误吗?string sql = string.Format("insert into Student (SNO,SNAME,XINAME,SEX,BRIDAY,COM) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", no, name,xiname,sex,bir,com);
我这个格式语句有错误吗?
string sql = string.Format("insert into Student (SNO,SNAME,XINAME,SEX,BRIDAY,COM) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}')",
no, name,xiname,sex,bir,com);

我这个格式语句有错误吗?string sql = string.Format("insert into Student (SNO,SNAME,XINAME,SEX,BRIDAY,COM) values ('{0}','{1}','{2}','{3}','{4}','{5}','{6}')", no, name,xiname,sex,bir,com);
占位符7个,参数只有6个.