仅供学习参考之用
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[insert_his_requisition]') and OBJECTPROPERTY(id, N'IsTrigger') = 1)
drop trigger [dbo].[insert_his_requisition]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_charge_item_detail]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_charge_item_detail]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_inspection]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_inspection]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_inspection_result]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_inspection_result]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_inspection_sample]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_inspection_sample]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_requisition]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_requisition]
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[his_requisition2]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
drop table [dbo].[his_requisition2]
GO |
|