我想在MS-Access数据库中存储像这样的单引号 [英] I want to store single quotes like ' this in MS-Access Database

查看:95
本文介绍了我想在MS-Access数据库中存储像这样的单引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在开发桌面应用程序.我想在Ms-Access数据库中存储单引号.这怎么可能.

在此先感谢
Neeraj

Hi I am developing desktop application.I want to store single quotes in Ms-Access database.how this can possible.

Thanks in Advance
Neeraj

推荐答案

就像这样

Just like this

INSERT INTO Room(Name)
SELECT '''adsf'''





希望这会有所帮助,如果是,那么请接受并投票答复.任何对此的任何疑问/问题都将受到欢迎.

谢谢&问候
RDBurmon.Sr.Software Engineer





Hope this helps , If yes then plz accept and vote the answer. Any queries / questions on this are always welcome.

Thanks & Regards
RDBurmon.Sr.Software Engineer


尝试对SQL文字中的嵌入式单引号使用双精度单引号('''').

请参考:休闲用户的Microsoft Access提示 [
Try using doubled single-quotes ('''') for embedded single-quotes in your SQL literals.

Refer: Microsoft Access Tips for Casual Users[^]


这篇关于我想在MS-Access数据库中存储像这样的单引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆