Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなクエリがあります。
SELECT product_id, product_amount,count(product_amount) as order_status FROM order_history GROUP BY product_amount, product_id ;
テーブルにインデックスを付けるにはどうすればよいですか? 誰でも助けてください。
product_idは主キーになるため、すでにインデックスが作成されているはずです。
product_id