Yanjy-OnlyOne

原始数据为:

1.获取第一个“@”前面的字符串:

select substring_index(字段名, \'@\', 1)  from 表名;

 

得到的数据为:

2、获取第一个“@”后面的字符串:

select substring_index(字段名, \'@\', -1)  from 表名;

 

得到的结果为:

 

分类:

技术点:

相关文章:

  • 2021-11-23
  • 2021-12-10
  • 2021-11-02
  • 2021-11-30
  • 2021-04-06
  • 2021-11-27
  • 2021-11-30
  • 2021-12-10
猜你喜欢
  • 2021-12-10
  • 2021-11-13
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2021-11-02
  • 2021-12-10
相关资源
相似解决方案