私は2つのテーブルを持っていて、std_personalこのstd_educationように:
std_personal :
+----------------------+
| id | name | family |
+----------------------+
std_education :
+----------------------+
| related_std | grade |
+----------------------+
std_education.related_stdstd_personal.id
1 つのクエリを使用してこれら 2 つの異なるテーブルにデータを挿入するにはどうすればよいですか? 私の問題は、std_personal.id挿入したいときに存在しないことですstd_education.related_std
:)