我有这个查询:
$query =
"
SELECT
detail_firstN AS firstname,
detail_lastN AS lastname
FROM users
WHERE
users_id = :users_id
";
结果将是这样的:
Array
(
[firstname] => John
[lastname] => Doe
)
MySQL 中有什么方法可以让我将结果组合成只有这个输出吗?
Array
(
[name] => John Doe
)