$sql="选择a.time a.company a.deptime、a.destime、a.flight,a.year,a.month,a.day,".$ticket_to_heaven"作为".$this->condition['type'].",".$seat."as".$this->条件['type']."_s,a.company,a.time from
".$this->TBLNAME."
";
我想把它换成$sql="从…中选择*"
但我是一个带着错误输出潜入的"a"。多乱啊!有人能帮忙吗?谢谢
[更新]
我把它改成了这样:
$sql="选择a.*,"$ticket_to_heaven。"作为".$this->condition['type'].",".$seat."as".$this->条件['type']."_s,a.company,a.time from
".$this->TBLNAME."
a";
在我看来还是有点奇怪。
使用
select a.* from table a
或(无别名)
select * from table