I have tables
labels
id INT A_I
id_user INT
id_label INT
labels_data
id INT A_I
label VARCHAR(10)
name VARCHAR(30)
tasks
id INT A_I
name VARCHAR(30)
value VARCHAR(1000)
And i want add entry to the table named tasks and I want add 3-4 entries to the table named labels. How I can do it and can i do it in one query??
Thanks…
If you are doing this directly through queries, then you will need one query for each row you are inserting to a table. So this will be one Insert to
Tasksand 3-4 inserts tolabels.See the mysql manual for Insert syntax.