select replace(classroomname,'呼市25中','内蒙古经贸学校'),*
from fdzexamclassroom where fdzid='15002' and exampihao like '201807%'
order by classroomname
replace(1,2,3)
1是要查哪个字段。
2是要原来的字符串
3是新的字符串
上面语句:
查找classroomname字段,把这个字段的字符串"呼市25中"替换成"内蒙古经贸学校"。
select replace(classroomname,'呼市25中','内蒙古经贸学校'),*
from fdzexamclassroom where fdzid='15002' and exampihao like '201807%'
order by classroomname
replace(1,2,3)
1是要查哪个字段。
2是要原来的字符串
3是新的字符串
上面语句:
查找classroomname字段,把这个字段的字符串"呼市25中"替换成"内蒙古经贸学校"。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。