l*********l 发帖数: 1 | 1 Tricky question. There is a table in access 2000 which has a column with type
memo. The long (>255) length string is stored in that column. If I write a sql
in access to retrieve it, the length of the string returned is correct. The
insteresting thing is that when I write the sql in java application and
retrieve it through ODBC, the length of the string returned will be truncated
to 255 no matter how long it was.
My code is like:
...
Statement stmt = con.createStatement();
ResultSet rs = stmt.ex | g***o 发帖数: 297 | 2 I got exactly the same problem when i was doing a project with Access as
backend and ASP as frontend. the tricky topics here is
1). Donot include DISTINCT keyword in your SQL statement, otherwise, an error
will be thrown.
2). Try to address MEMO field as the last column in your SQL statement.
or
3) Seperate your SQL statement into two. For example,
select other_field1, other_field2 from **** ; and select memo_field from ****
;
instead of select * from ****;
type
sql
truncated
【在 l*********l 的大作中提到】 : Tricky question. There is a table in access 2000 which has a column with type : memo. The long (>255) length string is stored in that column. If I write a sql : in access to retrieve it, the length of the string returned is correct. The : insteresting thing is that when I write the sql in java application and : retrieve it through ODBC, the length of the string returned will be truncated : to 255 no matter how long it was. : My code is like: : ... : Statement stmt = con.createStatement(); : ResultSet rs = stmt.ex
|
|