我正在使用以下 SQL 查询:
Select * from table1 as t1, table2 as t2 where t1.id = t2.col
但我的问题是这两个表都有同名的字段,place
. 那么如何place
从table2
我的 PHP 代码中选择带有名称的列呢?我想使用以下 php 代码
while($row_records = mysql_fetch_array($result_records))
{
<? echo $row_records['place']; ?>
}
如何从特定表中获取字段?