avatar
MS Access Question# Database - 数据库
a*e
1
In several records, there are "'"(single quote). I don't
know how to deal with it. In the query, I have to use single
quotes to embrace the strings. What should I do to let MS
Access think some "'"(single quote) are just like ordinary
strings?
Thank you very much.
avatar
s*e
2
try \' or /'

【在 a***e 的大作中提到】
: In several records, there are "'"(single quote). I don't
: know how to deal with it. In the query, I have to use single
: quotes to embrace the strings. What should I do to let MS
: Access think some "'"(single quote) are just like ordinary
: strings?
: Thank you very much.
:

avatar
a*e
3
Thank you very much. But I tried it already, it didn't
work.
Thank you again. Merry Christmas!

【在 s********e 的大作中提到】
: try \' or /'
avatar
p*e
4

I don't know how SQL statements work on Access. But in MS
SQL or other dbms, you use '' (two single quotes) in SQL for
the single quote character. Just like in C you use \\ for
\.
Example:
Update table1 set description = 'That''s the big boss'

【在 a***e 的大作中提到】
: Thank you very much. But I tried it already, it didn't
: work.
: Thank you again. Merry Christmas!

avatar
g*e
5

In Access or VB, you can use function chr().

【在 a***e 的大作中提到】
: Thank you very much. But I tried it already, it didn't
: work.
: Thank you again. Merry Christmas!

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