yangjianbo

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

 

分类:

技术点:

相关文章:

  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2022-01-02
  • 2021-09-17
猜你喜欢
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-09-17
  • 2021-11-08
相关资源
相似解决方案