说白了好像就是在原SQL语句:
$sql = "select tb2.name from tb1,tb2 where tb1.id=1 and tb1.pid=tb2.id"
上将结果集进行合并成一个词