mysql 註釋:mysql
select * from lilitest;sql
結果:排序
DML語句以下:it
select * from lilitest where name like '%guo%'; -- 模糊查詢
insert into lilitest(id,name,age)values(4,"zus",34),(5,"zhaoli",35),(6,"lik",67); -- 插入
delete from lilitest where name="lik";-- DELETE語句
update lilitest set age=57 where name ="zhaoli";-- update talbe1更新語句
select * from lilitest ORDER BY id,age ;-- 排序--
select count(id) from lilitest ;-- 求總條數
select sum(age) from lilitest;-- 求age總和
select avg(age) from lilitest; -- 求age 平均數
SELECT max(age) from lilitest; -- 求age最大值
select min(age) from lilitest; -- 求age最小值test