⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wareinfo_view.sql

📁 一个基本的酒店管理系统
💻 SQL
字号:
IF 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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -