Syntax :  table_name@query_block in subquery  
 
SELECT /*+ NO_INDEX_MERGE(payment@payment) */
       rental_id, rental_date, return_date
  FROM sakila.rental
 WHERE rental_id IN (
         SELECT /*+ QB_NAME(payment) */
                rental_id
           FROM sakila.payment
          WHERE staff_id = 1 AND customer_id = 75
       );

'RDB > MySQL' 카테고리의 다른 글

mysql db timezone 변경  (1) 2024.03.29
MySQL 8.0 Hint for set value parameter  (0) 2023.06.22
MySQL 8.0 Hint  (0) 2023.06.22
MySQL OOM 최소화  (0) 2023.04.27
delay replication  (0) 2023.03.28

+ Recent posts