SQl 源代码

结构化查询语言(StructuredQueryLanguage)简称SQL,是一种特殊目的的编程语言,是一种数据库查询和程序设计语言,用于存取数据以及查询、更新和管理关系数据库系统。

收录资源 500 份 全站深度检索
源码文件

select person.name,pay.*,deptname from pay,person,dept where pay.no=person.no and person.deptno=dept.deptno and dept…

源码文件

alter table pay add constraint pri_ymn primary key(no,year,month)

源码文件

declare @num int select @num=dbo.fun_checkno('000008') if @num=0 insert pay values('000008',2005,2,2200,280,12.4)

源码文件

create rule rule_prof as @a in('初级','中级','高级') go sp_bindrule'rule_prof','person.professor'

源码文件

select* from person where no in(select no from pay where year=2005 and month=1 and …

源码文件

delete from dept where deptno='00102'

源码文件

insert into pay values('000012','2005','2','1800','400','152.6')

源码文件

create view view_pay as select year,month,person.no,name,sex,professor,deptname,base,bonus,deduct,fact from …

源码文件

select deptno as 部门,sum(fact) as 总额 from pay,person where pay.no=person.no and year=2005 group by deptno