LONG类型到VARCHAR2类型会进行隐式转换,不需要函数,如:
SQL> create table t_long(col1 long);Table created.SQL> insert into t_long values ('1234');1 row created.SQL> insert into t_long values ('abc');1 row created.SQL> select * from t_long;COL1
--------------------------------------------------------------------1234
abc