我有一个由其他人构建的应用程序,我需要对其进行编辑。有一个代码区域我找不到正确的语法......有人可以帮忙吗?
POSTGRES 中的 select 语句如下所示:
SELECT collection|| '/' ||color AS collection
FROM table
WHERE series = 'random number' <-- this is controlled by an array in the php
在 php 中,现有代码如下所示:
$tableName = $db->getOne('SELECT collection FROM item_series WHERE series = ?', array($series['marriage_1']));
}else{$tableName = $series['marriage_1'];}
我已经尝试过了,但它不起作用:
$tableName = $db->getOne('SELECT collection, ".'/'.", color AS collection FROM item_series WHERE series = ?', array($series['marriage_1']));
}else{
$tableName = $series['marriage_1'];}
请帮助我已经寻找了几个小时的答案!