介绍几种关于Mysql数据库增删改查的最简单写法
程序员文章站
2022-03-10 18:29:14
添加数据insert into user values(1,"lirixing","boy");
查询select * from user;
更新update...
添加数据insert into user values(1,"lirixing","boy");
查询select * from user;
更新update user set name="liri" where id=1;
删除delete from user;
查询总条数select count(1) from user;
查询一个数的和select sum(id) from user;
上一篇: 相煎何太急