30. September 200421 j Hallo Leutz, wie caste ich einen String to java.sql.Clob? Sofern das überhaupt irgendwie geht...
30. September 200421 j Schau Dir doch mal die API-Doc an, dort steht dann sowas: setString(long pos, String str) Writes the given Java String to the CLOB value that this Clob object designates at the position pos. oder sowas: setString(long pos, String str, int offset, int len) Writes len characters of str, starting at character offset, to the CLOB value that this Clob represents. Casten bringt ja nichts, weil Dein String kein Clob ist. Du kannst nur dem Clob sagen, das er den String bei sich mit reinschreiben soll. Peter
Archiv
Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.