select length(p.attribute_value), p.* from sc_tm_product_attribute p
where p.sc_tm_product_info_id in (100806,...,...,);
我要把sc_tm_product_info_id=100806等100多条数据的attribute_value修改。。
这些数据attribute_value的长度大于10,导致不能下发到其他系统中。
现在我要把这个字段:attribute_value的值的长度截取到10位长度以内。请问怎么写谢谢了。
where p.sc_tm_product_info_id in (100806,...,...,);
SQL> select substr('1234567890asdfghj',1,10) sub from dual;
SUB
------------------------------
1234567890