lizg 2 nedēļas atpakaļ
vecāks
revīzija
6b4ddc560a

+ 5 - 0
odbctest/mql/basic/univdemo_peron_to_org/31delete.mql

@@ -0,0 +1,5 @@
+delete from /univ_demo/person with version
+/**
+onerror(continue,`not exist`,`not find`,`not found`)
+**/
+;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3674 - 0
odbctest/mql/basic/univdemo_peron_to_org/32insert_person.mql


+ 37 - 0
odbctest/mql/basic/univdemo_peron_to_org/40select.mql

@@ -0,0 +1,37 @@
+
+
+select * from /univ_demo/org limit -1
+/**
+output()
+count(519)
+**/
+;
+
+
+select * from /univ_demo/person limit -1
+/**
+output()
+count(3669)
+**/
+;
+
+
+match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org)
+return person.id as "person_id", org.id as "org_id"
+/**
+output()
+**/
+;
+
+select count(aaa.org_id) as count, aaa.org_id from 
+(match (person:/univ_demo/person)-[:person_to_org]->(org:/univ_demo/org) 
+return person.id as "person_id", org.id as "org_id") aaa
+group by aaa.org_id having count(distinct aaa.person_id)>0
+/**
+output()
+count(1)
+match("aaa.org_id","univ_demo_org:1",count,1)
+**/
+;
+
+