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.
非常に簡単な質問ですが、挿入前に「ID」列の一意の ID を生成するトリガーを MySQL で作成する方法を教えてください。
そのためのトリガーは必要ありません。テーブル構造で「auto_increment」オプションを使用して列を設定するだけです。
auto_increment のドキュメント