Javatpoint Logo
Javatpoint Logo

Neo4j LIMIT Clause

The Neo4j LIMIT clause is used to limit the number of rows in the output.

Syntax:

Here, I may be 1,2, 3? etc.

Example:

Let's fetch records from database where LIMIT is set to 3.

Output:

Neo4j Limits clause 1

LIMIT with Expression

The LIMIT clause can also be used with expressions.

Example:

Use the "rand" expression with LIMIT clause.

Output:

Neo4j Limits clause 2
Next TopicNeo4j Skip Clause





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA