我只想返回与我设置的连接字段不连接的其他字段。
这是我到目前为止所拥有的:
SELECT CONCAT(vendor,gender,shopcategory,focusword, `year`) AS code
FROM store_data
WHERE type_id = 0
答案 0 :(得分:1)
您应该能够在CONCAT之后(或之前)简单地列出其他字段:
SELECT CONCAT(vendor,gender,shopcategory,focusword, `year`) AS code, exampleField1, exampleField2
FROM store_data
WHERE type_id = 0