Home > database >  Secondary figure why database may be inserted to repeat the same data, how can not repeated injectio
Secondary figure why database may be inserted to repeat the same data, how can not repeated injectio

Time:09-20

CREATE (ww: DatabaseConnection {ConnectionId: 'c338df71cdcf85ebadac1aab31e25b3f ConnectionHost:' localhost ', ConnectionPort: '1521', ConnectionSeverName: 'TESTUSE, ConnectionUserName:' system 'and ConnectionPassword:' wouldn '})

Such a statement, for example, I perform twice will produce the same two nodes

CodePudding user response:

Never used this kind of database, can't help you sorry

CodePudding user response:

Use the merge keyword
Merge (n: person {id: 1}) set n +={id: 1, name: 'the lz, age: 18} return n

When a person node properties match id=1, update the node, if there is no criterion to create the node,
  • Related