字符串截取函数:split_part(字段名称,分隔符,位置)
1、原查询结果
select hotel_lol from ods.ods_hlw_jd_lmmlyjd_hhht;
postgres截取字段的值
2、使用split_part()切割函数
select split_part(hotel_lol,’,’,1) as “经度” , split_part(hotel_lol,’,’,2) as “纬度” from ods.ods_hlw_jd_lmmlyjd_hhht
postgres截取字段的值
注意:位置必须要大于0;

相关文章:

  • 2021-11-30
  • 2021-11-17
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
相关资源
相似解决方案