i always just use simple sql query, but was wondering how to make more advanced querys.
Lets say i have 2 tables datatable and primarytable and wants to insert a row into primarytable containing both new data and part of datatable, lets say field Msg and bla2 where ID=4.
primarytable(ID, newdata, fieldmsg, fieldbla2, x1,x2,x3)
1, qwerty, lalalalalala, yada, 1,2,3
2, ytrewq, textmsg, dasd, 3,2,1
datatable (ID, Msg, Bla1, Bla2)
1, lalalalalala, 1, yada
2, textmsg, 5, dasd
3, imnotamsg, 345, asd
4, yesyouare, 76, greer
5, shutupbothofyou, 34, gerrge
can it be made in 1 insert query, and how ?
p.s.
hope im not to vauge 🙂