そのように選択できる方法はありますか
select * from attributes where product_id = 500
戻るだろう
id name description
1 wheel round and black
2 horn makes loud noise
3 window solid object you can see through
そしてクエリ
select * from attributes where product_id = 234
このテーブルへのクエリと同じ結果が返されます。
明らかに、where 句を削除して、1 日を過ごすことができます。しかし、これには実際には変更したくないコードの編集が含まれるため、データベース レベルでこれを修正しようとしています。
where句の内容を無視して、ビューなどを使用して必要なものを返す「魔法の」方法はありますか?