我有这个代码
选择 CAST(i_terminal_id AS INT);
但我无法让它运行它总是说我在 INT 附近有一个错误。请帮忙。
编辑
这是我的php代码。
public function selectTerminals($id){
$form = $this->getUserData();
$form['id'] = $id;
$DAO = $this->getDAO('DAO');
$result=$DAO->query('selectTerminals',$form);
$y = sizeof($result);
//$result = terminal ids selected
$ids = join(',',$result); //
$form['terminal_id'] = $ids;
$form['array_count'] = $y;
$DAO = $this->getDAO('DAO');
$result1 = $DAO->query('displayTerminals',$form);
$sample = sizeof($ids);
echo $result1;
}