酒店管理.sql
来源:互联网 发布:linux dsdt 编辑:程序博客网 时间:2024/04/27 21:32
/*==============================================================*//* DBMS name: Microsoft SQL Server 2005 *//* Created on: 2017/1/2 14:56:12 *//*==============================================================*/if exists (select 1 from sysobjects where id = object_id('Kehu') and type = 'TR') drop trigger Kehugoif exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F') where r.fkeyid = object_id('kefang') and o.name = 'FK_KEFANG_REFERENCE_ROOMSTAT')alter table kefang drop constraint FK_KEFANG_REFERENCE_ROOMSTATgoif exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F') where r.fkeyid = object_id('kefang') and o.name = 'FK_KEFANG_REFERENCE_ROOMTYPE')alter table kefang drop constraint FK_KEFANG_REFERENCE_ROOMTYPEgoif exists (select 1 from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F') where r.fkeyid = object_id('kehu') and o.name = 'FK_KEHU_REFERENCE_KEFANG')alter table kehu drop constraint FK_KEHU_REFERENCE_KEFANGgoif exists (select 1 from sysobjects where id = object_id('RoomState') and type = 'U') drop table RoomStategoif exists (select 1 from sysobjects where id = object_id('RoomType') and type = 'U') drop table RoomTypegoif exists (select 1 from sysobjects where id = object_id('kefang') and type = 'U') drop table kefanggoif exists (select 1 from sysobjects where id = object_id('kehu') and type = 'U') drop table kehugo/*==============================================================*//* Table: RoomState *//*==============================================================*/create table RoomState ( RoomStateID int not null, RoomStateName varchar(10) null, constraint PK_ROOMSTATE primary key (RoomStateID))go/*=====================================
0 0
- 酒店管理.sql
- SQL高级 第八章 酒店管理系统
- 酒店管理系统(.net3.5 + sql2000 + linq to sql)
- 酒店管理系统升级(.net4.0 + sql2005 + linq to sql)
- Java+Swing+SQL+Server2005开发酒店管理系统源代码下载
- 酒店管理与信息化
- 案例 酒店管理
- 案例 酒店管理2
- 酒店管理系统
- 酒店管理需求分析
- 酒店管理系统
- 酒店管理系统心得
- 酒店管理系统数据库
- 酒店管理系统
- 酒店管理系统
- poj 1823 酒店管理
- php酒店管理系统
- 酒店管理系统
- bzoj 3236 作业 莫队
- android系统增量升级问题
- 通过Digester了解依赖注入原理
- VisualVM jvm gc调优_安装_原理_配置_集成_日志_验证_分析
- 用 Flask 来写个轻博客 (34) — 使用 Flask-RESTful 来构建 RESTful API 之三
- 酒店管理.sql
- Android有没有什么控件,支持选择一段时间
- 同时使用python2与python3的简单方法
- (翻译)Draft.js编辑器简介
- CodeForces 750E. New Year and Old Subsequence
- bzoj 2127
- 求思路:递归查询后,数据根据父节点分组统计!!!
- 01.酒店管理系统
- Android新手,求助Banner广告条的开发办法