sql语句错误!

//INSERT INTO 'user' VALUES (null,'管理学院','14初教1','初等教育','陈娇','201420006','420624199604080025','女');

foreach ($data as $k => $v1) {

if($k==0)continue;

$j=0;

$max=7;

$s_sql =  "INSERT INTO '".$table."' ";

$s_sql .= "VALUES (".'null,';

foreach ($v1 as $k => $v) {

if($k==$max) break;

$j++;

if($v=='"'||$v==""){

}

else{ 

$s_sql .= "'".$v."'";

if($j<$max) {

$s_sql .= ",";

}

}

}

$s_sql .= ');';

echo $s_sql."<br>";


qq_墨白色_04023976
浏览 1366回答 4
4回答

筑梦之路

主键约束不能为空,唯一约束
打开App,查看更多内容
随时随地看视频慕课网APP