这个查询对我来说很好:
$query = "
SELECT
p.topnode_id,
p.param_key,
p.param_value
FROM
tbl_params p
INNER JOIN
tbl_clients c
ON
c.client_id = p.client_id
WHERE
p.client_id = ?
";
但是,如果我AS
输入查询,它会抛出一个错误:
$query = "
SELECT
p.topnode_id AS topnode_id,
p.param_key AS key,
p.param_value AS value
FROM
tbl_params p
INNER JOIN
tbl_clients c
ON
c.client_id = p.client_id
WHERE
p.client_id = ?
";
似乎是什么问题?