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中"替换成"内蒙古经贸学校"。