语法 :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
语法 :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
转载于:https://www.cnblogs.com/jason-dong/p/9645494.html