SQL常用操作大全
来源:互联网 发布:编程语言对比 编辑:程序博客网 时间:2024/06/05 18:06
select查询字段 from 表名where条件
查询字段: 通配符 * 字段名,字段别名
表名数据库.表名 表名
查询条件 = <> in not in like between not between > < and or ()
select * from test (where id=2)
select id from test (where id between 1 and 4)
select remark as rm from test
分组语句 group by 字段
排序语句 order by 字段 ASC DESC
指针查询 limit 初始值 结束值
计算 count() MAX() MIN() AVG() SUM()
select * from test group by remark
select * from test order by studate ASC
select * from test limit 0,3
insert into 表名(字段.....) value(值.....)
insert into test(id,uid,name,studate) value(1,12,logens,2008-09-09)
update 表名 set 字段=值 where 条件 limit
delete 表名 where条件 limit
- SQL常用操作大全
- [MS SQL]常用SQL语句大全1-基本操作
- 常用的SQL语句大全-单表操作
- 常用的SQL语句大全-多表操作
- SQL常用语句大全
- 常用 SQL 语句大全
- sql常用语句大全
- 常用 SQL 语句大全
- 常用 SQL 语句大全
- 常用 SQL 语句大全
- 常用 SQL 语句大全
- sql常用函数大全
- 常用 SQL 语句大全
- 常用 SQl 语句大全
- 常用SQL语句大全
- 常用 SQL 语句大全
- 常用SQL语句大全
- sql经典常用大全
- Styling QProgressBar and QScrollBar
- C/C++二维数组的动态分配及参数传递
- 年终感悟14条, 太经典了
- 慎用一键还原!ps:又是万恶360
- Android各版本区别总结
- SQL常用操作大全
- 你好,2011!——梦想在这里起航
- 2010-12月笔记20-31
- qt4操作sqlite入门
- strncpy()
- CollegeSystem:经历警钟
- oci插入方法封装
- Qt的事件处理机制分析
- 手把手教你,借助matlab,如何制作Xilinx的coe文件