您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页mysql基本语句

mysql基本语句

来源:化拓教育网


mysql基本语句是:

  

  1、选择:“select * from table where”范围。

  

  2、插入:“insert into table(field1,field2) values(value1,value2)”。

  

  3、删除:“delete from table where ”范围。

  

  4、更新:“update table set field1=value1 where ”范围。

  

  5、查找:“select * from table where field1 like ’%value1%’”。

  

  6、排序:“select * from table order by field1,field2 [desc]”。

  

  7、总数:“select count as totalcount from table”。

  

  8、求和:“select sum(field1) as sumvalue from table”。

  

  9、平均:“select avg(field1) as avgvalue from table”。

  

  10、最大:“select max(field1) as maxvalue from table”。

  

  11、最小:“select min(field1) as minvalue from table”等。

  

  

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务