neo4j密码toInt函数 [英] neo4j cypher toInt function

查看:385
本文介绍了neo4j密码toInt函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在neo4j Cypher refcard中( http://docs.neo4j.org/refcard/2.0/)在功能"部分下有以下定义:

In the neo4j Cypher refcard (http://docs.neo4j.org/refcard/2.0/) under Functions sections there is this definition:

toInt({expr})

Converts the given input in an integer if possible; otherwise it returns NULL.

如果我在Cypher控制台中尝试它,我会得到:

If I try it in Cypher console I get this:

neo4j-sh (?)$ match (n:Document) return toInt(n.date);
==> SyntaxException: Unknown function 'toInt' (line 1, column 27)
==> "match (n:Document) return toInt(n.date)"
==>                            ^
neo4j-sh (?)$ 

(在我的情况下,n.date是该日期的字符串表示形式.)

(In my case n.date is a string representation of that date.)

neo4j文档中也没有提及此功能: http://docs.neo4j.org/chunked/stable/query-function.html .

Also in the neo4j documentation there is not mention of this function: http://docs.neo4j.org/chunked/stable/query-function.html.

有人能解决这个难题吗?

Can anyone solve this puzzle?

推荐答案

toInt和toFloat.检查此

toInt and toFloat are not yet added in 2.0.1 release. Check at this link.{line 28} Its been planned to release with 2.0.2

这篇关于neo4j密码toInt函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆