SELECT *,REPLACE(F1,'ABC',chr(13)+chr(10)) FROM TT WHERE INSTR(F1,'ABC')>0
select * from tb where instr(col1,'abc')>1update tb set col1=replace(col1,'abc','')update tb set col1=replace(col1,'abc','<br/>abc')
查询 SELECT * FROM `table` WHERE 'sa' LIKE '%a%' 删除和查询差不多第三个不懂~
1.查询出abc 并显示. select * from table1 where 字段 like '%abc%';2. 删除abc, update table1 set 字段=update(字段,'abc','') where 字段 like '%abc%';3.在abc前加一个回车符号<br/> 请教了。感谢 !! update table1 set 字段=update(字段,'abc','\nabc') where 字段 like '%abc%';
如果是中文字符的话, update(字段,'你好','') where 字段 like '%你好%'; 识别不了。
from tb
where instr(col1,'abc')>1update tb
set col1=replace(col1,'abc','')update tb
set col1=replace(col1,'abc','<br/>abc')
SELECT *
FROM `table`
WHERE 'sa' LIKE '%a%'
删除和查询差不多第三个不懂~
select * from table1 where 字段 like '%abc%';2. 删除abc,
update table1 set 字段=update(字段,'abc','') where 字段 like '%abc%';3.在abc前加一个回车符号<br/> 请教了。感谢 !!
update table1 set 字段=update(字段,'abc','\nabc') where 字段 like '%abc%';
MySQL 中文显示乱码