2016-10-26 90 views
0

我建立在Java中的SQL查詢與和ORA-01465:無效的十六進制數

INSERT INTO authorizations (id, typeid, s) 
    VALUES (HEXTORAW('1a225e19-8893-4068-958c-3d9914a34ca5'), 
      HEXTORAW('00000000-0000-0000-0000-000000000000'), 
      '1'); 

我得到一個ORA-01465 error結束了。我在做什麼愚蠢的錯誤?

+1

看看這有助於 - https://www.techonthenet.com/oracle/errors/ora01465.php – Rao

回答

1

刪除連字符...

INSERT INTO authorizations (user_id, source_id, access_level) VALUES (HEXTORAW('1a225e1988934068958c3d9914a34ca5'), HEXTORAW('00000000000000000000000000000000'), '1');