Welcome Guest, Not a member yet? Register   Sign In
Join, if?
#2

[eluser]Phil Sturgeon[/eluser]
Would a right join not do the trick?

Code:
$this->db->join('translations', 'trans_ref_id = news_id', 'right');

That means if you have a news_id, but there is no matching trans_ref_id, it will load NULL for all the fields in translations.


Messages In This Thread
Join, if? - by El Forum - 01-19-2009, 08:52 AM
Join, if? - by El Forum - 01-19-2009, 09:50 AM
Join, if? - by El Forum - 01-19-2009, 11:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB