0

我的数据库中有一个名为“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
4

1 回答 1

4

如果你尝试:

$SQL = "UPDATE system_owner SET system=REPLACE(system,'elearning\n','')
于 2012-06-20T04:29:10.200 回答