CREATE COLUMN TABLE "SBODEMODE"."AUQR" ("IntrnalKey" INTEGER CS_INT NOT NULL , "QCategory" INTEGER CS_INT NOT NULL , "QName" NVARCHAR(100) NOT NULL , "QString" NCLOB MEMORY THRESHOLD 1000, "QType" NVARCHAR(1) DEFAULT 'W', "ColumnSize" NVARCHAR(100), "DBType" INTEGER CS_INT, "QLastDate" LONGDATE CS_LONGDATE, "QLastTime" SMALLINT CS_INT, "Xslt" NCLOB MEMORY THRESHOLD 1000, "MenuItem" NVARCHAR(1) DEFAULT 'N', "MenuCapt" NVARCHAR(254), "FatherMenu" INTEGER CS_INT, "MenuPos" SMALLINT CS_INT, "MenuUid" NVARCHAR(32), "CommandID" INTEGER CS_INT, "UpdateDate" LONGDATE CS_LONGDATE, "LastUpdate" INTEGER CS_INT, "LogInstanc" INTEGER CS_INT DEFAULT 0 NOT NULL , "CreateDate" LONGDATE CS_LONGDATE, "ChangeDate" LONGDATE CS_LONGDATE, "CreateTS" INTEGER CS_INT, "UpdateTS" INTEGER CS_INT, "UserSign" SMALLINT CS_INT, "UserSign2" SMALLINT CS_INT, "AnaActive" NVARCHAR(1), "DisplTile" NVARCHAR(1) DEFAULT 'N', PRIMARY KEY ("IntrnalKey", "QCategory", "LogInstanc")) UNLOAD PRIORITY 0  AUTO MERGE ;
CREATE UNIQUE INDEX "AUQR_QNAME_K" ON "SBODEMODE"."AUQR" ( "QName" ASC, "QCategory" ASC, "LogInstanc" ASC )