quote: Originally posted by visakh16 what is primary key of tables?
whole table looks like this:CREATE TABLE [CDN].[TraSElem]( [TrS_GIDTyp] [smallint] NULL, [TrS_GIDFirma] [int] NULL, [TrS_GIDNumer] [int] NOT NULL, [TrS_GIDLp] [smallint] NOT NULL, [TrS_SubGIDLp] [smallint] NOT NULL, [TrS_DstTyp] [smallint] NULL, [TrS_DstFirma] [int] NULL, [TrS_DstNumer] [int] NULL, [TrS_DstLp] [smallint] NULL, [TrS_MagTyp] [smallint] NULL, [TrS_MagFirma] [int] NULL, [TrS_MagNumer] [int] NULL, [TrS_MagLp] [smallint] NULL, [TrS_ZwrTyp] [smallint] NULL, [TrS_ZwrFirma] [int] NULL, [TrS_ZwrNumer] [int] NULL, [TrS_ZwrLp] [smallint] NULL, [TrS_SubZwrLp] [smallint] NULL, [TrS_RezTyp] [smallint] NULL, [TrS_RezFirma] [int] NULL, [TrS_RezNumer] [int] NULL, [TrS_RezLp] [smallint] NULL, [TrS_TrnTStamp] [int] NULL, [TrS_Ilosc] [decimal](11, 4) NULL, [TrS_CChTyp] [smallint] NULL, [TrS_CChFirma] [int] NULL, [TrS_CChNumer] [int] NULL, [TrS_CChLp] [smallint] NULL, [TrS_Cecha] [varchar](20) COLLATE Polish_CI_AS NULL, [TrS_KosztKsiegowy] [decimal](15, 2) NULL, [TrS_KosztRzeczywisty] [decimal](15, 2) NULL, [TrS_WartoscDostawy] [decimal](15, 2) NULL, [TrS_KosztKrajowy] [decimal](15, 2) NULL, [TrS_KosztZagraniczny] [decimal](15, 2) NULL, [TrS_IloscDPPrzed] [decimal](11, 4) NULL, [TrS_KsiegowyDPPrzed] [decimal](15, 2) NULL, [TrS_DsFTyp] [smallint] NULL, [TrS_DsFFirma] [int] NULL, [TrS_DsFNumer] [int] NULL, [TrS_DsFLp] [smallint] NULL, [TrS_RzeczywistyDPPrzed] [decimal](15, 2) NULL, [TrS_WalutaKosztuKrajowego] [varchar](3) COLLATE Polish_CI_AS NULL, [TrS_ZlcTyp] [smallint] NULL, [TrS_ZlcFirma] [int] NULL, [TrS_ZlcNumer] [int] NULL, [TrS_ZlcLp] [smallint] NULL, [TrS_RezerwacjaZasobu] [smallint] NULL, [TrS_WalutaDostawy] [varchar](3) COLLATE Polish_CI_AS NULL, [TrS_KrajPoch] [varchar](2) COLLATE Polish_CI_AS NULL, CONSTRAINT [TrS_Primary] PRIMARY KEY CLUSTERED ( [TrS_GIDNumer] ASC, [TrS_GIDLp] ASC, [TrS_SubGIDLp] ASC)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]) ON [PRIMARY] Is this mean that TrS_GIDNumer, TrS_GIDLp and TrS_SubGIDLp are creating unique key? |