我试图使用RSQLite从我的数据库中读取表。所有表都有带有".“的列名。
例如:我的测试表有2列: index,first.name
如何编写查询以筛选具有name列的测试表:
我的代码是:
dbGetQuery(con,"SELECT * FROM test WHERE 'first.name' = 'Joe'")它给了我一个错误:
Error: no such column: first.name发布于 2019-08-12 08:10:28
以下内容应该有效:添加[]
dbGetQuery(con,"SELECT * FROM test WHERE [first.name] = 'Joe'")参见下面的线程:How to write a column name with dot (".") in the SELECT clause?
https://stackoverflow.com/questions/57457072
复制相似问题