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 Tasks
and 3-4 inserts to labels
.
See the mysql manual for Insert syntax .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.