|
|
@@ -47,13 +47,42 @@ create class if not exists /test/性能AaB (
|
|
|
insert into /test/性能AaB (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test',"服务器1","2026-04-02","2026-04-02 15:55:55");
|
|
|
insert into /test/性能AaB (id,主机AaB,v_date,v_timestamp) values ('性能AaB:test2',"服务器2","1754-08-31","1754-08-31 15:55:55");
|
|
|
|
|
|
+select * from /test/性能AaB where v_date='1754-08-31' refresh
|
|
|
+/**
|
|
|
+output()
|
|
|
+count(1)
|
|
|
+**/
|
|
|
+;
|
|
|
+
|
|
|
+select * from /test/性能AaB where v_timestamp='1754-08-31 15:55:55' refresh
|
|
|
+/**
|
|
|
+output()
|
|
|
+count(1)
|
|
|
+**/
|
|
|
+;
|
|
|
+
|
|
|
create ("性能AaB:test")-[:connect]->("性能AaB:test2")
|
|
|
/**
|
|
|
output()
|
|
|
**/
|
|
|
;
|
|
|
|
|
|
-select count(*) from /test/性能AaB where 主机AaB='服务器1'
|
|
|
+create ("性能AaB:test2")-[:connect]->("性能AaB:test")
|
|
|
+/**
|
|
|
+output()
|
|
|
+**/
|
|
|
+;
|
|
|
+
|
|
|
+select connect from /test/性能AaB
|
|
|
+/**
|
|
|
+output()
|
|
|
+matchcount("connect","性能AaB:test2",1)
|
|
|
+matchcount("connect","性能AaB:test",1)
|
|
|
+**/
|
|
|
+;
|
|
|
+
|
|
|
+
|
|
|
+select * from /test/性能AaB where 主机AaB='服务器1'
|
|
|
/**
|
|
|
output()
|
|
|
count(1)
|