数据库增删查改(手写)
增加
INSERT INTO `user` (`name`, `pass`)
VALUES ('YHM','123456');
删除
DELETE FROM `user`
WHERE id = 5
查询
SELECT `name`,`pass` FROM `user`
WHERE id > 10
修改
UPDATE `user` SET `name`='name6'
WHERE id= 10
博客列表 >11月20日数据库常用操作语句-九期线上班
INSERT INTO `user` (`name`, `pass`)
VALUES ('YHM','123456');
DELETE FROM `user`
WHERE id = 5
SELECT `name`,`pass` FROM `user`
WHERE id > 10
UPDATE `user` SET `name`='name6'
WHERE id= 10