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.
resultmySQL で呼び出されるテーブルがあります。ワンクリックで複数の行を挿入したい。基本的に、教師は生徒の結果をphpを介してデータベースに入れています。
result
表: 結果
エンティティ: 結果、student_id
PHPスクリプトは、次の方法で挿入SQLを構築する必要があります(テーブルT1にはF1とF2の2つのフィールドがあり、入力はv11 v12 v21 v22などであると想定しています)
INSERT INTO T1 (F1,F2) VALUES (V11,V12), (V21,V22), ... ... (Vn1,Vn2);