| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- -- ============================================================
- -- Cypher 创建图和关系测试
- -- ============================================================
- match (n:/test/aaa/test_graph) return n.g_name, n.g_type, n.g_value
- /**
- onerror(continue,'unsupport single node')
- output()
- **/
- ;
- match (a:test_graph) where a.g_type='type_a' return a.g_name, a.g_type, a.g_value
- /**
- onerror(continue,'expected [ \t\r\n\f]')
- output()
- **/
- ;
- match (a:test_graph), (b:test_graph) where a.g_name='node_a' and b.g_name='node_b'
- /**
- onerror(continue,'unsupport single node')
- **/
- ;
- create (a) -[:connect]-> (b)
- /**
- onerror(continue,"After 'create (a) '")
- **/
- ;
- match (a:test_graph), (b:test_graph) where a.g_name='node_c' and b.g_name='node_d'
- /**
- onerror(continue,'unsupport single node')
- **/
- ;
- create (a) -[:connect]-> (b)
- /**
- onerror(continue,"After 'create (a) '")
- **/
- ;
- match (a:test_graph), (b:test_graph) where a.g_name='node_a' and b.g_name='node_c'
- /**
- onerror(continue,'unsupport single node')
- **/
- ;
- create (a) -[:connect]-> (b)
- /**
- onerror(continue,"After 'create (a) '")
- **/
- ;
- match (a:test_graph) -[:connect]-> (b:test_graph) return a, b
- /**
- output()
- **/
- ;
|