Jump to content

[SOLVED] Update several tables in one query?


kernelgpf

Recommended Posts

Is there a way to update several tables in the same query? My query is-

 

mysql_query("update dragons set age=age+0.14,bondedwithtoday='0',dailyflight='no' where dead='no'");

 

And I want it to update the following tables: dragons,pegasus,fairies,unicorns,hippogriff but they all have the same columns..

 

Thanks!

 

-Alyssa

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.