IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[Qsy_OldShoponHr]') AND type = 'U')
CREATE TABLE [dbo].[Qsy_OldShoponHr]
(
    [ym] nvarchar(6) COLLATE Chinese_PRC_CI_AS NOT NULL,
    [c_store_id] bigint NULL,
    [code] nvarchar(50) COLLATE Chinese_PRC_CI_AS NULL,
    [no] nvarchar(20) COLLATE Chinese_PRC_CI_AS NOT NULL,
    [name] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    [zj] nvarchar(20) COLLATE Chinese_PRC_CI_AS NULL,
    CONSTRAINT [PK_Qsy_OldShoponHr] PRIMARY KEY ([ym] ASC,[no] ASC)
)