Hsqldb单引号字符 [英] Hsqldb single quote character
本文介绍了Hsqldb单引号字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Hsqldb表中插入单引号字符?转义字符不适用于该问题.
How can I insert single quote character to Hsqldb table? Escape character doesn't work for the problem.
推荐答案
有两种方法.
-
使用两个单引号.例如
INSERT INTO T VALUES 'escap''d'
使用Unicode字符串,其中可以包含Unicode转义.例如INSERT INTO T VALUES U&'escap\0027d'
Use a Unicode string, which can contain a Unicode escape. For example INSERT INTO T VALUES U&'escap\0027d'
两个示例都将字符串escap'd
插入表中.
Both examples insert the string escap'd
into the table.
这篇关于Hsqldb单引号字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文