代码搜索:sql
找到约 10,000 项符合「sql」的源代码
代码结果 10,000
www.eeworm.com/read/255779/12056498
sql cnt.sql
www.eeworm.com/read/255732/12061592
sql 2.sql
create procedure sel_order(@x datetime =null)
as
if (@x is null)
begin
print '必须提供一个日期作为参数'
return 13
end
if not exists
(select 客户名称, 联系人,电话, 订单号,订购日期 from 客户,订购单
where 客户.客户号=订购单.客户号
www.eeworm.com/read/255732/12061595
sql 1.sql
create procedure sel_price(@x money =null,@y money =null)
as
if (@x is null or @y is null)
begin
print '必须提供两个价格作为参数'
return 13
end
if not exists(select * from 产品 where 单价 between @x and
www.eeworm.com/read/255732/12061598
sql 3.sql
create procedure update_date(@x char(40)=null,@y datetime =null)
as
if (@x is null or @y is null)
begin
print '必须同时提供一个产品名称和一个指定日期作为参数'
return 13
end
if not exists(select * from 产品 where
www.eeworm.com/read/255732/12061601
sql 6.sql
--6 定义含有虚字段的视图
create view aaa as
select 订单明细表.订单号,avg(数量*单价) 平均金额
from 订单明细表,产品
where 订单明细表.产品号=产品.产品号
group by 订单明细表.订单号
www.eeworm.com/read/255732/12061605
sql 2.sql
--2基于单表按选择操作定义视图
create view cp_sel as
select *
from 产品
where 产品名称='主板'
www.eeworm.com/read/255732/12061608
sql 5.sql
--5 基于多个表根据嵌套查询定义视图
create view cp_qt as
select 产品.产品号,产品名称,规格说明,订单号,数量
from 产品,订单明细表
where 产品.产品号 in (
select 产品号
from 订单明细表
where 数量>1)
www.eeworm.com/read/255732/12061611
sql 1.sql
--1基于单表按投影操作定义视图
create view cp_name as
select 产品号,产品名称
from 产品
www.eeworm.com/read/255732/12061613
sql 4.sql
--4 基于多个表根据连接查询定义视图
create view cp_qt as
select 产品.产品号,产品名称,规格说明,订单号,数量
from 产品,订单明细表
where 产品.产品号=订单明细表.产品号
www.eeworm.com/read/255732/12061617
sql 3.sql
--3基于单表按选择和投影操作定义视图
create view cp_sel_3 as
select 产品号,产品名称,规格说明
from 产品
where 产品名称='主板'