Welcome Guest, Not a member yet? Register   Sign In
MySQL question: 2 queries in 1
#3

[eluser]Pygon[/eluser]
I can't specifically answer for CI. The sql would be like:

SELECT * FROM tbl_user LEFT JOIN tbl_user_hobbies ON tbl_user.id = tbl_user_hobbies.user_id;

edit:

I think Alex covered it.


Messages In This Thread
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 10:52 AM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 10:57 AM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 10:58 AM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 11:12 AM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 12:08 PM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 12:23 PM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 02:12 PM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 03:12 PM
MySQL question: 2 queries in 1 - by El Forum - 11-05-2007, 03:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB