Hi,
I need to insert a lengthy text into the columns of a table.
The format of the table is
int, char(2000), char(2000).
When i insert using the following statement,
"insert into t1 values (1, <2000 characters>, <2000 characters>)",
it gives the following error:
"SP2-0027: Input is too long (> 2499 characters) - line ignored"
But, when i insert using preparedStatement from JDBC it works.
pst = con.prepareStatement("insert into chainTest values (2, ?, ?)"
pst.setString(1, longText); // longText is a String with 2000 chars
pst.setString(2, longText);
pst.executeQuery();
Is there a way to reduce the size of the query, using something similar to replicate('#', 80), which produces 80 #s.
tia,
madhes
I need to insert a lengthy text into the columns of a table.
The format of the table is
int, char(2000), char(2000).
When i insert using the following statement,
"insert into t1 values (1, <2000 characters>, <2000 characters>)",
it gives the following error:
"SP2-0027: Input is too long (> 2499 characters) - line ignored"
But, when i insert using preparedStatement from JDBC it works.
pst = con.prepareStatement("insert into chainTest values (2, ?, ?)"
pst.setString(1, longText); // longText is a String with 2000 chars
pst.setString(2, longText);
pst.executeQuery();
Is there a way to reduce the size of the query, using something similar to replicate('#', 80), which produces 80 #s.
tia,
madhes