4

Using Neo4J 2.1.6 with Cypher.

I was wondering if it's possible to "alias" a query result column with a string containing spaces?

Following code generates error:

enter image description here

error with "..."

MATCH (a)
RETURN a.name AS "My Alias Column Name";

error without ...

MATCH a 
RETURN a.name AS My Alias Column Name;
Carlo Luther
  • 2,402
  • 7
  • 46
  • 75

1 Answers1

16

Spaces are possible, you can alias it using the backticks as follows:

MATCH (a)
RETURN a.age AS `My Alias Age Column Name`;
wassgren
  • 18,651
  • 6
  • 63
  • 77
Dave Fauth
  • 828
  • 5
  • 3