DB2 执行计划

db2expln -d prod -u db2inst1 db2inst123 -statement "SELECT xxx FROM RPT.CLIENT_INTERACTION_V WHERE MS_ID in ( '008861-806','0046442-897') AND DATE between LAST_DAY(current date - 12 months)+ 1 day and LAST_DAY(current date) + 1 day) AS CLIENT_INTERACTION GROUP BY TYPE)" -terminal -g


--db2 expln
db2expln -d dev -u db2inst1 db2inst123 -statement "select * from ods.ACCOUNTS as account join ods.ACCOUNTS_CONTACTS as accontact on account.account_id=accontact.account_id join ods.CONTACTS as contacts on accontact.contact_id=contacts.contact_id where account.MS_ID= '0280012-897' and accontact.deleted != 1 and contacts.deleted != 1 and contacts.URN is not null" -terminal -g


你可能感兴趣的:(DB2)