- 博客(0)
- 资源 (1)
空空如也
SQL视图与索引总结
区分视图与索引(1) 创建视图:(以SQL语句)
create view v_GoodsInfo_ClassName_UnitName
[with encryption--对CREATE VIEW语句文本的项进行加密]
as
select GoodsID 商品编号,ClassName 类别名,Price 价格,StoreNum 库存数量,UnitName 单位,Price*StoreNum 销售金额
from GoodsInfo G1,GoodsClass G2,GoodsUnit G3
where G1.ClassID=G2.ClassID
and G1.GoodsUnit=G3.UnitID
and ClassID='SPLB03'
2013-01-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人