INSERT INTO msg('username', 'content' ,'intime') value('11','b','c');
楼上是错的 正确的是
$sql="INSERT INTO msg (`username`, `content`, `intime`) VALUES ('3', '4', '5')";
注意中间的符号 软件生成的代码和你写的 代码的符号不一样
UPDATE msg SET username='3333' ,intime=1 where id =20 OR id=19;
DELETE FROM msg WHERE content = 'a';
SELETE * FROM msg WHERE id>22 ORDER BY id DESC;
//msg 为表名, desc 为倒序