Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在一个值之后添加一个字符。例如:
SELECT brand FROM `autoinfo` WHERE 1
结果:
Audi Ford ...
我需要那个结果:
Audi w Ford w ...
我怎样才能做到这一点?
如果您需要在 之后连接符号brand,请使用以下CONCAT()功能:
brand
CONCAT()
SELECT concat(brand, ' w') as brand FROM `autoinfo` WHERE 1;