CabaretDBProject/Create Scripts/WareInfo_view.sql
(完整代码) 1007BIF EXISTS (SELECT * FROM sysobjects WHERE type = 'V' AND name = 'WareInfo_view')
BEGIN
PRINT 'Dropping View WareInfo_view'
DROP View WareInfo_view
END
GO
/******************************************************************************
** File:
** Name: WareInfo_view
** Desc:
**
** This template can be customized:
**
**
** Auth:
** Date:
*******************************************************************************
** Change History
*******************************************************************************
** Date: Author: Description:
** -------- -------- -------------------------------------------
**
*******************************************************************************/
PRINT 'Creating View WareInfo_view'
GO
CREATE View WareInfo_view
as
select wid,(select ctype from consumetype where cid=wcid)as type,wname,wprice,wchar,wunit from wareinfo
GO
GRANT SELECT ON WareInfo_view TO PUBLIC
GO
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
