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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章