试试
insert into  A(col1,col2,col_long) values('a','b',(select hextoraw(col_long) from B where choice....))或
insert into  A(col1,col2,col_long) values('a','b',(select rawtohex(col_long) from B where choice....))

解决方案 »

  1.   

    A value of datatype LONG was used in a function or in a DISTINCT,
    WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can
    only be used in a SELECT clause.
      

  2.   

    long类型的字段只能在select 语句,不能用在function or in a DISTINCT,
    WHERE, CONNECT BY, GROUP BY, or ORDER BY clause.
      

  3.   

    insert into  A (col1,col2,col_long)  select 'a','b',col_long from B where choice....