sql基础语句
来源:互联网 发布:淘宝开店照片要求 编辑:程序博客网 时间:2024/06/12 04:10
***select***
select *
from table1, table2
where table1.id *= table2.id -------- 左外部连接,table1中有的而table2中没有得以null表示
table1.id =* table2.id -------- 右外部连接
select stockname from table1
union [all] ----- union合并查询结果集,all-保留重复行
select stockname from table2
***insert***
insert into table_name (Stock_name,Stock_number) value ("xxx","xxxx")
value (select Stockname , Stocknumber from Stock_table2)---value为select语句
***update***
update table_name set Stockname = "xxx" [where Stockid = 3]
Stockname = default
Stockname = null
Stocknumber = Stockname + 4
***delete***
delete from table_name where Stockid = 3
truncate table_name ----------- 删除表中所有行,仍保持表的完整性
drop table table_name ---------------完全删除表
- SQL查询语句基础
- 基础Sql语句
- 最基础sql语句
- SQL语句使用基础
- Sql基础语句
- Sql 基础语句
- 2-基础SQL语句
- SQL语句收集--基础
- 基础sql语句
- Sql语句最基础
- SQL基础语句+说明
- sql管理基础语句
- Sql基础语句【整理】
- sql语句基础
- sql语句基础
- 基础类 - SQL语句
- SQL基础实用语句
- SQL语句基础
- 写一个块设备驱动 3
- cassandra自带例子portfolio安装调试问题
- nginx 配置优化的几个参数
- 写一个块设备驱动 4
- Synchronized 用法
- sql基础语句
- EXT 树
- GTK+ for Windows Runtime Environment Installer
- 开源爬虫Labin,Nutch,Neritrix介绍和对比
- PHP学习笔记之数组形成
- 递归 -- 阶乘
- Matlab的imfilter函数用法
- 写一个块设备驱动 5
- 如何使使 mfc combobox 的输入框只读