$srt = \Phpcmf\Service::M()->db->query("updata dr_1_zhgl set features = replace(features,'\n','')")->countAllResults();
运行这个就报错,还是语法错误
方案
迅睿框架联合创始人#1 · 2022-12-13 15:11:43
\Phpcmf\Service::M()->db->query("updata dr_1_zhgl set features = replace(features,'\n','')"); 这样就够了,后面那句是多余的
帅不过十秒#2 · 2022-12-13 15:14:32
写多了
仿站织梦转换特199#3 · 2022-12-13 15:15:42
迅睿框架联合创始人 删掉也没用。是不是和php的replace冲突了
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'updata dr_1_zhgl set features = replace(features,' ','')' at line 1 搜索问题 →
updata dr_1_zhgl set features = replace(features,' ','')
\Phpcmf\Service::M()->db->query("updata dr_1_zhgl set features = replace(features,'\n','')"); 这样就够了,后面那句是多余的这里原因吧。update