postgres 和 h2 db 中名称中的 # 字符有问题
我有一组书籍名称,我将其添加到 Books
表中。 这些名称都是从亚马逊网站复制的
1.The Winter King (The Arthur Books #1)
2.Enemy of God (The Arthur Books #2)
当我将这些名称添加到表中时,
,后来尝试使用确切的名称进行查询,但没有得到任何结果。我尝试了 postgres 和 h2 数据库。最后,当我使用列出项目时,
>>select b.name from Books b;
The Winter King (The Arthur Books
Enemy of God (The Arthur Books
似乎省略了 # 字符。那么,我该如何解决这个问题?我是否必须通过从条目中删除 # 字符来修改所有数据?或者有解决方法吗?
I have a set of book names which I am adding to a Books
table.
The names are all copied from amazon website
1.The Winter King (The Arthur Books #1)
2.Enemy of God (The Arthur Books #2)
when I add these to the table ,and later try a query using the exact name,I get no results.I tried postgres and h2 databases.
Finally,when I listed the items using
>>select b.name from Books b;
The Winter King (The Arthur Books
Enemy of God (The Arthur Books
It seems that the # character is omitted..So,how do I get around this?Do I have to modify all my data by removing the # character from the entries? or is there a workaround?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在旧版本的 H2 中使用 CSV 导入 (
CSVREAD
) 时,#
字符将被解析为行注释。对于 H2 版本 1.3.150 及更高版本,默认情况下不再是这种情况,如 更改日志中所述。When using CSV import (
CSVREAD
) in an older version of H2, then the#
character is parsed as a line comment. This is no longer the case by default for H2 version 1.3.150 and newer, as described in the change log.