将字符插入MySQL varchar值

将字符插入MySQL varchar值,mysql,substring,concat,Mysql,Substring,Concat,是否有MySQL函数可以轻松地将一个或多个字符插入varchar列的值中 我要设置以下文本: bu1u09 2011赛段1、3-10 24小时 到 B U 1 U N 09 2011 Segs 1,3-10 24小时到选择一个可以使用的值: select concat(left(col, 8), 'N ', substring(col, 9)) from table1 update table1 set col = concat(left(col, 8), 'N ', substring(co

是否有MySQL函数可以轻松地将一个或多个字符插入varchar列的值中

我要设置以下文本:

bu1u09 2011赛段1、3-10 24小时


B U 1 U N 09 2011 Segs 1,3-10 24小时

选择一个可以使用的值:

select concat(left(col, 8), 'N ', substring(col, 9))
from table1
update table1
set col = concat(left(col, 8), 'N ', substring(col, 9))
如果要
更新
,可以使用:

select concat(left(col, 8), 'N ', substring(col, 9))
from table1
update table1
set col = concat(left(col, 8), 'N ', substring(col, 9))

请参见以
选择您可以使用的值:

select concat(left(col, 8), 'N ', substring(col, 9))
from table1
update table1
set col = concat(left(col, 8), 'N ', substring(col, 9))
如果要
更新
,可以使用:

select concat(left(col, 8), 'N ', substring(col, 9))
from table1
update table1
set col = concat(left(col, 8), 'N ', substring(col, 9))
请参见尝试:

SELECT INSERT('B U 1 U 09 2011 Segs 1, 3 - 10 24 hours', 8, 0, ' N');
SQL Fiddle:

更多信息:

请尝试:

SELECT INSERT('B U 1 U 09 2011 Segs 1, 3 - 10 24 hours', 8, 0, ' N');
SQL Fiddle:


更多信息:

您能解释一下为什么在
U
09
之间插入
N
吗DIt是首选的命名约定。您能否解释为什么在
U
09
之间插入
N
DIt是首选的命名约定。