Welcome Guest, Not a member yet? Register   Sign In
Join Operation
#1

[eluser]Suhas nazir[/eluser]
Can u please tell how we write join operation if the 2 tables contain same field how i differentiate these 2 fields.. please help????
#2

[eluser]nelson.wells[/eluser]
You need the AS clause in your JOIN. Do some Google-ing (I'll get you started).
#3

[eluser]flaky[/eluser]
Code:
$this->db->select('post_id');
$this->db->from('post');
$this->db->join('user', 'post.user_id = user.user_id');




Theme © iAndrew 2016 - Forum software by © MyBB