警告は何を意味しますか?Toad for Oracle Formatterのアドバイス
2番目の例が最初の例よりも悪いのはなぜですか?
SELECT product_id, prod.name name, sample_id
FROM lims.sample JOIN lims.product prod USING (product_id)
対
SELECT product_id, prod.name name, sample_id
FROM (SELECT sample_id, product_id FROM lims.sample)
JOIN lims.product prod
/* ADVICE: [131] This item has not been declared, or it refers to a label */
USING (product_id)
/* ADVICE:
ADVICE SUMMARY
Count Recommendation
----- --------------
1 [131] This item has not been declared, or it refers to a label
The Oracle equivalent error messages are PLS-00320 and
PLS-0321.
*/
はFYI:両方のクエリは正常に動作し、同じ結果を返します。
いずれの場合も歓迎です。 – Steven