sql批量insert多條 mysql數(shù)據(jù)庫不能插入新數(shù)據(jù)?
mysql數(shù)據(jù)庫不能插入新數(shù)據(jù)?<?菲律賓比索$conn=@mysqluconnect(“l(fā)ocalhost”、“root”、“root”、“new Test or die/*數(shù)據(jù)庫名未寫,輕視!
mysql數(shù)據(jù)庫不能插入新數(shù)據(jù)?
<?菲律賓比索$conn=@mysqluconnect(“l(fā)ocalhost”、“root”、“root”、“new Test or die/*數(shù)據(jù)庫名未寫,輕視!*/mysql select db(“new Test”,$conn)$SQL=“insert into Test(ID,uid,regdate,remark)value(“10”,“360”,now(),“antivirus software”)“/*鏈接通道$conn不寫入*/if(mysql) Query($SQL,$conn)){echo“insert successed”}else{echo“insert failed”}?>再次檢查所有列以查看類型中是否有任何錯誤。建議:向創(chuàng)建的表中添加一個自增ID。