我有 sql 选择:
SELECT *
FROM `fclients` AS F
LEFT JOIN `fclients_sequens` AS FS ON F.category = FS.category
ORDER by FS.num
我得到结果:
然后,对于id
第一个表中的给定,我进行 sql 查询:
SELECT *, fclients.id as fclientsID
FROM `fclients` AS F
LEFT JOIN `fclients_sequens` AS FS ON F.category = FS.category
ORDER by FS.num
我得到一个错误:
#1054 -“字段列表”中的未知列“fclients.id”
请告诉我如何给id拳头列(id = 37)?