Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you use JOINS when inserting data?

Status
Not open for further replies.

VitoCorleone

Programmer
Jun 22, 2004
28
GB
hello,

This is a half mysql and PHP question. I was wondering if you can use JOINS to insert into multiple tables rather than using mysql_query() to invoke multiple queries?

If you can, could you point me to some examples?
 
Dont quote me on this but I believe you can create a view incorporating multiple tables, insert data into the view, and define triggers in the view to update the base tables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top