avatar
Access 'memo' data type# Database - 数据库
l*l
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
avatar
g*o
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

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。