[英]How to write regex to find empty space after colon in string with no new line in text format?
[英]remove empty space after new line in a string mysql
我的数据库中有一个名为“ system”的字段,看起来像这样
系统字段;
registration //This field is part of a table called "system_owner"
elearning //all three value is in one string which each contains "\n"
payment
当我用这个SQL语句删除“ elearning”时;
$SQL = "UPDATE system_owner SET system=REPLACE(system,'elearning','')
系统领域变成这样;
registration
payment
我的问题是如何删除“注册”和“付款”之间的空白? 我应该使用什么SQL语句?
我想要的字段的输出
registration
payment
如果尝试:
$SQL = "UPDATE system_owner SET system=REPLACE(system,'elearning\n','')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.