本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
識別具有巢狀迴圈的查詢
下列查詢可識別已針對巢狀迴路記錄提醒事件的查詢。如需如何修正巢狀迴路條件的資訊,請參閱巢狀迴圈。
select query, trim(querytxt) as SQL, starttime from stl_query where query in ( select distinct query from stl_alert_event_log where event like 'Nested Loop Join in the query plan%') order by starttime desc;