1.今天发现数据库中数据有点问题,有些数据在获取的时候多了‘&nbsp’这样的字符。发现SQL有Replace这样的函数。

  用法:

  update tablename set colname=replace(colname,'&nbsp','');

  tablename 是表名;

  colname 是列名;

将字符‘&nbsp’替换为NULL

相关文章:

  • 2022-12-23
  • 2021-08-20
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-01-06
  • 2021-08-29
猜你喜欢
  • 2021-09-15
  • 2021-11-12
  • 2021-09-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
相关资源
相似解决方案