• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active Record Join Update

What is the best way to do an update if I have joined table? I just started learning about joins and am having a hard time getting my head around it. If I have a form for instance, where some data would go in one table and some in another table based on the same id how would I do that easily?

From your requirement it's clear you need to build two sql statements and run them separately to update two different tables.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.