core-jgi/migration/oracle/330-331b/018_SaveUserQueryMessage.sql

20 lines
499 B
MySQL
Raw Normal View History

2007-10-10 13:01:51 +07:00
INSERT INTO AD_Message
(AD_Message_ID, AD_Client_ID, AD_Org_ID, IsActive,
Created, CreatedBy,
Updated, UpdatedBy,
Value, MsgText, MsgType
)
VALUES (53005, 0, 0, 'Y',
TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('10/10/2007 14:00:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'QueryName','Query Name','I'
2007-10-10 13:01:51 +07:00
);
UPDATE AD_Sequence
SET CurrentNextSys = (SELECT MAX (AD_Message_ID) + 1
FROM AD_Message
WHERE AD_message_ID < 1000000)
WHERE NAME = 'AD_Message';
COMMIT;