⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 6db.txt

📁 the original code of the book the principle and practice in sql server 2005
💻 TXT
字号:
select * from 仓库 where 城市='北京'
union 
select * from 仓库 where 城市='上海'

select 仓库号 from 仓库
intersect 
select 仓库号 from 职工


select *  from 职工,仓库
where 职工.仓库号=仓库.仓库号
and 工资>1500 and 面积>600


select 仓库.仓库号,职工号,城市,面积,工资 from 仓库
inner join
职工 on 职工.仓库号=仓库.仓库号 and 面积>600

select 仓库.仓库号,职工号,城市,面积,工资
from 职工,仓库 
where 职工.仓库号=仓库.仓库号 and 面积>600

select 仓库.仓库号,职工号,城市,面积,工资 from 仓库 left join 职工 on
职工.仓库号=仓库.仓库号 and 面积>600

select 仓库.仓库号,职工号,城市,面积,工资 from 仓库 full join 职工 on
职工.仓库号=仓库.仓库号 and 面积>600

select 仓库.仓库号,职工.职工号,城市,面积,工资,金额 from 仓库
left join 职工 on 职工.仓库号=仓库.仓库号
right join 订购单 on 职工.职工号=订购单.职工号
and 面积>600

select 仓库号,城市,面积,创建时间  into 仓库blank from 仓库 where 面积>600

update 仓库 set 面积=面积+100 where 城市='上海' or 城市='北京'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -