我现在不知道,为什么我在这个sql请求中有错误

6l7fqoea  于 2021-06-17  发布在  Mysql
关注(0)|答案(1)|浏览(276)
UPDATE `vjprf_jshopping_manufacturers` 
SET `meta_title_en-GB`='Buy products from the manufacturer '.`name_en-GB`.' 
in Ukraine at wholesale prices | Deps' WHERE `manufacturer_id`=3

我需要插入 name_en-GBmeta_title_en-GB ='一些文字( place to insert name_en-GB )一些文字'
错误号#1064

dkqlctbz

dkqlctbz1#

点在php中用于字符串连接。使用 CONCAT mysql中的函数:

UPDATE vjprf_jshopping_manufacturers
SET meta_title_en-GB = CONCAT('Buy products from the manufacturer ', name_en-GB,
    ' in Ukraine at wholesale prices | Deps')
WHERE
    manufacturer_id = 3;

相关问题