Welcome Guest, Not a member yet? Register   Sign In
delete from two tables in one query
#3

[eluser]Otemu[/eluser]
Hi,

If your table has a foreign key constraint and are related, you could have a delete cascade on update, basically if you delete a field in one table it delete on the other.

You could use what TheFuzzy0ne check out codeigniter transactions

and finally you could use a join if the tables are related.

Thanks hope that helps


Messages In This Thread
delete from two tables in one query - by El Forum - 03-12-2013, 10:45 PM
delete from two tables in one query - by El Forum - 03-13-2013, 01:13 AM
delete from two tables in one query - by El Forum - 03-13-2013, 06:33 AM
delete from two tables in one query - by El Forum - 03-13-2013, 06:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB