wsd_djy/Docs/YSZDK.sql
2019-02-28 10:03:26 +08:00

179 lines
8.1 KiB
Transact-SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

USE [Ehis]
GO
/****** Object: Table [dbo].[MZYSZ_YSZDK] Script Date: 02/25/2019 13:20:38 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[MZYSZ_YSZDK](
[Zdxh] [varchar](36) NOT NULL,
[Zlh] [varchar](36) NOT NULL,
[Zdrq] [datetime] NOT NULL,
[Zdys] [int] NOT NULL,
[Cfzbz] [int] NULL,
[Zddm] [varchar](20) NOT NULL,
[Ssy] [int] NULL,
[Szy] [int] NULL,
[Xtz] [money] NULL,
[Sffr] [int] NULL,
[Fbrq] [datetime] NULL,
[Mb] [int] NULL,
[Hx] [int] NULL,
[Tw] [money] NULL,
[Sfxysccb] [smallint] NULL,
[Zs] [text] NULL,
[Tj] [text] NULL,
[xbs] [varchar](300) NULL,
[Jbxxbh] [int] NULL,
[zdbw] [varchar](30) NULL,
[Bz] [varchar](255) NULL,
[Jlzt] [smallint] NULL,
[othersysbrid] [varchar](36) NOT NULL,
[othersyszlid] [varchar](36) NOT NULL,
[othersyssoid] [varchar](36) NOT NULL,
[ZddmPlus] [smallint] NOT NULL,
[ztbz] [int] NOT NULL,
[jymz] [int] NOT NULL,
[jyxh] [int] NOT NULL,
[jycs] [varchar](200) NULL,
[jws] [varchar](300) NULL,
[gms] [varchar](300) NULL,
[jcnr] [varchar](200) NULL,
[xdyw] [varchar](300) NULL,
[Blxh] [int] NOT NULL,
[zyzzdm] [varchar](20) NULL,
[mzzg] [varchar](10) NULL,
[bldy] [int] NOT NULL,
[Height] [float] NULL,
[Weight] [float] NULL,
[Fjjg] [varchar](200) NULL,
CONSTRAINT [PK_MZYSZ_YSZDK] PRIMARY KEY CLUSTERED
(
[Zdxh] 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] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zdxh(Õï¶ÏÐòºÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zdxh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zlh(ÖÎÁƺÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zlh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zdrq(Õï¶ÏÈÕÆÚ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zdrq'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zdys(Õï¶ÏÒ½Éú)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zdys'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Cfzbz(³õ¸´Õï±êÖ¾)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Cfzbz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zddm(Õï¶Ï´úÂë)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zddm'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Ssy(ÊÕËõѹ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Ssy'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Szy(ÊæÕÅѹ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Szy'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Xtz(ѪÌÇÖµ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Xtz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Sffr(ÊÇ·ñ·¢ÈÈ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Sffr'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Fbrq(·¢²¡ÈÕÆÚ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Fbrq'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Mb(Âö²«)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Mb'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Xt(ÐÄÌø)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Hx'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tw(ÌåÎÂ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Tw'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Sfxysccb(ÊÇ·ñÊ״η¢ÏÖѪѹ´óÓÚµÈÓÚ140/90mmHg)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Sfxysccb'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Zs(Ö÷Ëß)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Zs'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Tj(Ìå¼ì)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Tj'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'xbs(ÏÖ²¡Ê·)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'xbs'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Jbxxbh(»ù±¾ÐÅÏ¢±àºÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Jbxxbh'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'zdbw()' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'zdbw'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Bz(±¸×¢)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Bz'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Jlzt(¼Ç¼״̬)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'Jlzt'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersysbrid(ÆäËûϵͳ²¡ÈËΨһºÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'othersysbrid'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersyszlid(ÆäËûϵͳ¹ÒºÅΨһºÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'othersyszlid'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'othersyssoid(ÆäËûϵͳSOΨһºÅ)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK', @level2type=N'COLUMN',@level2name=N'othersyssoid'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'MZYSZ_YSZDK(Ò½ÉúÕï¶Ï¿â)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'MZYSZ_YSZDK'
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [Cfzbz]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [Sffr]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT (getdate()) FOR [Fbrq]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [Sfxysccb]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [Jlzt]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [ZddmPlus]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [ztbz]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [jymz]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [jyxh]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD DEFAULT ((0)) FOR [Blxh]
GO
ALTER TABLE [dbo].[MZYSZ_YSZDK] ADD CONSTRAINT [bldy] DEFAULT ((-1)) FOR [bldy]
GO