基础SQL语句
来源:互联网 发布:崩坏3辅助软件 编辑:程序博客网 时间:2024/06/05 06:56
选择:select * from table1 where 范围插入:insert into table1(field1,field2) values(value1,value2)删除:delete from table1 where 范围更新:update table1 set field1=value1 where 范围查找:select * from table1 where field1 like ’%value1%’ ---like的语法很精妙,查资料!
select * from table where time between time1 and time2 --- between 限制查询数据范围时包括了边界值
select * from table where id limit a,b --- 从第a条开始,查找b条数据
排序:select * from table1 order by field1,field2 [desc]总数:select count as totalcount from table1求和:select sum(field1) as sumvalue from table1平均:select avg(field1) as avgvalue from table1最大:select max(field1) as maxvalue from table1最小:select min(field1) as minvalue from table1
阅读全文
0 0
- SQL查询语句基础
- 基础Sql语句
- 最基础sql语句
- SQL语句使用基础
- Sql基础语句
- Sql 基础语句
- 2-基础SQL语句
- SQL语句收集--基础
- 基础sql语句
- Sql语句最基础
- SQL基础语句+说明
- sql管理基础语句
- Sql基础语句【整理】
- sql语句基础
- sql语句基础
- 基础类 - SQL语句
- SQL基础实用语句
- SQL语句基础
- JQuery中$.ajax()方法参数详解
- jQuery性能优化
- jQuery中的事件
- jQuery1.9+去除live()后的替代
- JQuery for与each性能比较分析
- 基础SQL语句
- JSON.parse()和JSON.stringify()
- jquery插入元素
- 前端书籍推荐
- HTML5新增的标签及属性
- class样式优先级问题
- 随记
- web存储
- 离线缓存manifest