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.
私は2つのテーブルを持っています:notificattinsとusers
users テーブルのすべてのレコードに対して、通知テーブルに 1 つのレコードを挿入したいと考えています。
実際、すべてのユーザーが受け取る通知を 1 つ追加したいと考えています。
誰でも私を助けることができますか?
テーブル構造を指定しませんでしたが、通常はこれを行うことができます
insert into notifications (some_column, other_column) select username, other_column from users