You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. USE [OPMS_Online]
  2. GO
  3. /****** Object: Table [dbo].[OTB_FNC_AccountingBookStatus] Script Date: 2017/10/19 上午 11:50:10 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. SET ANSI_PADDING ON
  9. GO
  10. Drop Table [dbo].[OTB_FNC_AccountingBookStatus]
  11. Go
  12. CREATE TABLE [dbo].[OTB_FNC_AccountingBookStatus](
  13. [AccountingBookID] [Varchar](20) NOT NULL,
  14. [AccountingYear] [char](4) NOT NULL,
  15. [IsOpen] [char](1) NOT NULL,
  16. [CreateDate] [datetime] NOT NULL,
  17. [CreateUser] [varchar](50) NOT NULL,
  18. [ModifyDate] [datetime] NOT NULL,
  19. [ModifyUser] [varchar](50) NOT NULL,
  20. CONSTRAINT [PK_OTB_FNC_AccountingBookStatus] PRIMARY KEY CLUSTERED
  21. (
  22. [AccountingBookID] ASC,
  23. [AccountingYear] ASC
  24. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  25. ) ON [PRIMARY]
  26. GO
  27. SET ANSI_PADDING OFF
  28. GO
  29. Insert Into OTB_FNC_AccountingBookStatus(AccountingBookID, AccountingYear, IsOpen, CreateDate, CreateUser, ModifyDate, ModifyUser) Values ('Origtek', YEAR(Getdate()), 'Y', Getdate(), 'ApAdmin', Getdate(), 'ApAdmin')
  30. GO