位置:- 正文

mysql基本语句(mysql语句大全实例教程)

编辑:rootadmin

mysql基本语句是:
627838041mysql基本语句(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”等。

本文链接地址:https://www.jiuchutong.com/zhishi/191025.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/191026.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络