SQL视图与索引总结

时间:2016-02-04 08:00:46
【文件属性】:
文件名称:SQL视图与索引总结
文件大小:41KB
文件格式:DOC
更新时间:2016-02-04 08:00:46
试图与索引 区分视图与索引(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'

网友评论