IF NOT EXISTS (SELECT 1 FROM sys.objects WHERE object_id = OBJECT_ID('[dbo].[mps_task_java]') AND type = 'U')
CREATE TABLE [dbo].[mps_task_java]
(
    [tsk_id] int NOT NULL IDENTITY(1, 1),
    [tsk_cmpid] int NULL DEFAULT((0)),
    [tsk_name] varchar(100) COLLATE Chinese_PRC_CI_AS NULL,
    [tsk_interval] int NULL DEFAULT((0)),
    [tsk_runtime] datetime NULL DEFAULT('1900-1-1'),
    [tsk_nextruntime] datetime NULL DEFAULT('1900-1-1'),
    [tsk_times] int NULL DEFAULT((0)),
    [tsk_type] varchar(20) COLLATE Chinese_PRC_CI_AS NULL DEFAULT('sql'),
    [tsk_objtype] varchar(30) COLLATE Chinese_PRC_CI_AS NULL DEFAULT(''),
    [tsk_ordid] bigint NULL DEFAULT((0)),
    [tsk_jbid] bigint NULL DEFAULT((0)),
    [tsk_bizid] int NULL DEFAULT((0)),
    [tsk_wrkid] int NULL DEFAULT((0)),
    CONSTRAINT [PK_mps_task_java] PRIMARY KEY ([tsk_id] ASC)
)