Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个类,其中包含 orientdb 数据库之类的from字段to。
from
to
如何执行选择from和to字段的查询?
我试过select [from] from Activity了,但它在抱怨[。
select [from] from Activity
[
FROM 和 TO 是保留字。因此,您可以更改名称或反引号。例子:
select `from` from Activity
您必须使用以下命令禁用 strictSql:
ALTER DATABASE custom strictSql=false
然后你必须使用反引号:
SELECT `from` FROM Activity