149 lines
7.4 KiB
MySQL
149 lines
7.4 KiB
MySQL
|
USE [Ehis]
|
|||
|
GO
|
|||
|
|
|||
|
/****** Object: Table [dbo].[MZYSZ_CFK] Script Date: 02/25/2019 13:20:01 ******/
|
|||
|
SET ANSI_NULLS ON
|
|||
|
GO
|
|||
|
|
|||
|
SET QUOTED_IDENTIFIER ON
|
|||
|
GO
|
|||
|
|
|||
|
SET ANSI_PADDING ON
|
|||
|
GO
|
|||
|
|
|||
|
CREATE TABLE [dbo].[MZYSZ_CFK](
|
|||
|
[CFxh] [varchar](36) NOT NULL,
|
|||
|
[brkh] [char](30) NOT NULL,
|
|||
|
[brsfz] [varchar](18) NULL,
|
|||
|
[brzlh] [varchar](36) NOT NULL,
|
|||
|
[brmzh] [char](16) NULL,
|
|||
|
[brxm] [char](16) NOT NULL,
|
|||
|
[brxb] [char](2) NOT NULL,
|
|||
|
[brnl] [int] NOT NULL,
|
|||
|
[brlx] [int] NOT NULL,
|
|||
|
[cflx] [smallint] NOT NULL,
|
|||
|
[cfysdm] [int] NOT NULL,
|
|||
|
[cfrq] [datetime] NULL,
|
|||
|
[cfysksdm] [int] NOT NULL,
|
|||
|
[cfzxksdm] [int] NOT NULL,
|
|||
|
[cfje] [money] NOT NULL,
|
|||
|
[ckbh] [int] NOT NULL,
|
|||
|
[Tfsj] [datetime] NULL,
|
|||
|
[Tfczy] [int] NULL,
|
|||
|
[cfyxq] [datetime] NOT NULL,
|
|||
|
[Jbxxbh] [int] NULL,
|
|||
|
[mzcflx] [int] NOT NULL,
|
|||
|
[jlzt] [smallint] NOT NULL,
|
|||
|
[othersysbrid] [varchar](36) NOT NULL,
|
|||
|
[othersyszlid] [varchar](36) NOT NULL,
|
|||
|
[othersyscfid] [varchar](36) NOT NULL,
|
|||
|
[bybz] [int] NOT NULL,
|
|||
|
[bzdm] [char](12) NOT NULL,
|
|||
|
[Blxh] [int] NOT NULL,
|
|||
|
[yscf_cfh] [varchar](50) NULL,
|
|||
|
[yscf_jgdm] [varchar](50) NULL,
|
|||
|
[kfsqdbz] [int] NULL,
|
|||
|
[ccfbz] [varchar](2) NULL,
|
|||
|
CONSTRAINT [PK_MZYSZ_CFK] PRIMARY KEY CLUSTERED
|
|||
|
(
|
|||
|
[CFxh] ASC
|
|||
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 90) ON [PRIMARY]
|
|||
|
) ON [PRIMARY]
|
|||
|
|
|||
|
GO
|
|||
|
|
|||
|
SET ANSI_PADDING OFF
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'CFxh(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'CFxh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brkh(<28><><EFBFBD>˿<EFBFBD><CBBF><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brkh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brsfz(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>֤)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brsfz'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brzlh(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƺ<EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brzlh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brmzh(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brmzh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brxm(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brxm'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brxb(<28><><EFBFBD><EFBFBD><EFBFBD>Ա<EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brxb'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brnl(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brnl'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'brlx(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'brlx'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cflx(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cflx'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfysdm(<28><><EFBFBD><EFBFBD>ҽ<EFBFBD><D2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfysdm'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfrq(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfrq'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfysksdm(<28><><EFBFBD><EFBFBD>ҽ<EFBFBD><D2BD><EFBFBD><EFBFBD><EFBFBD>Ҵ<EFBFBD><D2B4><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfysksdm'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfzxksdm(<28><><EFBFBD><EFBFBD>ִ<EFBFBD>п<EFBFBD><D0BF>Ҵ<EFBFBD><D2B4><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfzxksdm'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfje(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfje'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ckbh(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'ckbh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tfsj(<28>˷<EFBFBD>ʱ<EFBFBD><CAB1>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'Tfsj'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tfczy(<28>˷<EFBFBD><CBB7><EFBFBD><EFBFBD><EFBFBD>Ա)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'Tfczy'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'cfyxq(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'cfyxq'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Jbxxbh(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'Jbxxbh'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'mzcflx(<28><><EFBFBD>ﴦ<EFBFBD><EFB4A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'mzcflx'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'jlzt(<28><>¼״̬)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'jlzt'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersysbrid(<28><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>Ψһ<CEA8><D2BB>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'othersysbrid'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersyszlid(<28><><EFBFBD><EFBFBD>ϵͳ<CFB5>Һ<EFBFBD>Ψһ<CEA8><D2BB>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'othersyszlid'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersyscfid(<28><><EFBFBD><EFBFBD>ϵͳ<CFB5><CDB3><EFBFBD><EFBFBD>Ψһ<CEA8><D2BB>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK', @level2type=N'COLUMN',@level2name=N'othersyscfid'
|
|||
|
GO
|
|||
|
|
|||
|
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'MZYSZ_CFK(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_CFK'
|
|||
|
GO
|
|||
|
|
|||
|
ALTER TABLE [dbo].[MZYSZ_CFK] ADD DEFAULT ((0)) FOR [mzcflx]
|
|||
|
GO
|
|||
|
|
|||
|
ALTER TABLE [dbo].[MZYSZ_CFK] ADD DEFAULT ((0)) FOR [bybz]
|
|||
|
GO
|
|||
|
|
|||
|
ALTER TABLE [dbo].[MZYSZ_CFK] ADD DEFAULT ('01') FOR [bzdm]
|
|||
|
GO
|
|||
|
|
|||
|
ALTER TABLE [dbo].[MZYSZ_CFK] ADD DEFAULT ((0)) FOR [Blxh]
|
|||
|
GO
|
|||
|
|
|||
|
|