语法 :substr(字段,starindex,len)  下标从 1 开始

测试

select substr(order_dt,0,10)
from siebel_cx_order 
where dt=20180831 
limit 10;


2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31
2018-08-31

 

相关文章:

  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2022-02-03
相关资源
相似解决方案