摘要:
第一个表 table1 为消费都用的时间:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Table1]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[Table1]GOCREATE TABLE [dbo].[Table1] ([AutoID] [int] NOT NULL ,[BeginTime] [datetime] NULL ,[EndTime] [datetime] NULL ) ON 阅读全文