示例:
SELECT
(
...
) AS imageName,
(
...
) AS imageURL,
CONCAT(imageName, ' ', imageURL)
我怎么能实现这个目标?
答案 0 :(得分:1)
您可以执行以下操作,但要注意表格的别名:
SELECT
T.imageName, T.imageURL
CONCAT(imageName, ' ', imageURL)
FROM
(
SELECT
(
...
) AS imageName,
(
...
) AS imageURL
FROM ... AS innerT
) T
答案 1 :(得分:1)
你可以在CONCAT内完成所有这些:
select CONCAT(( select ... ), ' ', ( select ... ))