SQL语句里需要使用单引号怎么办

字符串里使用单引号
2025-03-25 09:39:39
推荐回答(5个)
回答(1):

转译一下。
SQL是这样的:如:insert into tt values(3,'it''s','');
其中 it''s 就表示插入的是 it's.

回答(2):

用链接符再加双引号
例:sql="select * from table where id='"&这里是内容&"'"

回答(3):

你是要插入 带引号的字符串吗?
直接 '' 就行了
写俩个单引号

回答(4):

select * from table where a=''
select * from table where a in (select a from table2 where b='')

回答(5):

没明白你的意思。。。是这样吗?select * ‘’ from table?