$query = DB::query("SELECT a.tid, b.attachment FROM %t AS a, %t AS b WHERE a.attachment IS NOT NULL AND a.tid = b.tid", array(
'forum_thread','forum_threadimage'
));
//$data = DB::fetch($query);
while ($res = DB::fetch($query)){
$result[] = $res;
print_r($result);
};
转载于:https://my.oschina.net/u/2294923/blog/667663