gpt4 book ai didi

MySQL 无法替换换行符

转载 作者:行者123 更新时间:2023-11-29 21:07:25 30 4
gpt4 key购买 nike

我尝试从文本类型字段中删除新行符号,我使用的语句 - 下面,尝试了我在这里找到的所有语句,但没有成功:

UPDATE `ae1_jshopping_products`
SET `short_description_lt-LT` = REPLACE(`short_description_lt-LT`, '\r\n', ' ');

Print of it

我还附上了带有错误消息的打印件。 enter image description here

提前致谢!

最佳答案

将您的字段名称 short_description_lt-LT 放入反引号中:

UPDATE `ae1_jshopping_products` 
SET `short_description_lt-LT` = REPLACE(`short_description_lt-LT`, '\r\n',' ');

解释:MySQL无法知道您是否要从short_description_lt中减去LT,或者-是否属于到您的字段名称。

关于MySQL 无法替换换行符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36689880/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com