你好我想加入三个表但它从用户表中获取所有数据,我只想要firstname和lastname参数 p>
这是我的连接查询。 我想要一些像join(user.firstname)。 p>
$ this-> db-> select('*');
$ this-> db- > from('post');
$ this-> db-> join('user','user.id = post.cop_id');
$ this-> db-> join( 'source','post.source_id = source.id');
$ query = $ this-> db-> get();
return $ query-> result();
code > pre>
div>