我这个格式语句有错误吗?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/05/06 07:50:37
我这个格式语句有错误吗?string sql = string.Format(

我这个格式语句有错误吗?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个.