/*定义视图名称*/
create view NoImgProduct
as
/*定义视图内容*/
select
ProductNo,ProductName,ProductImg,Description,
img1,Stock,CommonNumber,WarehouseName,Position
from
dbo.Product,ZtdGoodsStock,WarehouseServiceCharge,SubWarehouse
where
Product.ProductID=ZtdGoodsStock.ProductID
and product.ProductID=WarehouseServiceCharge.ProductId
and WarehouseServiceCharge.ZtdID=282
and ZtdGoodsStock.ZtdNo='A001'
and ZtdGoodsStock.Stock>0
and img1='none.gif'
and SubWarehouse.WID=WarehouseServiceCharge.WID
/*加上约束语句,以后对视图进行插入、修改和删除操作时,会自动加上where后面的条件*/

相关文章:

  • 2022-01-01
  • 2022-03-02
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2021-10-13
  • 2021-11-30
  • 2022-12-23
  • 2022-02-04
  • 2022-01-21
相关资源
相似解决方案