1
我有一个SELECT staement,我加入了2个单独的表。从查询显示表名
$result = mysql_query('SELECT * FROM (SELECT * FROM gslil0009) as table1 UNION SELECT * FROM (SELECT * FROM gslil0028) as table2' . ' ORDER BY lname');
while($row = mysql_fetch_array($result)) {
echo $row['fname'];
}
我该如何打印出哪个表格的行来自?