Assume that there is a tag
named "houses", which represents which houses people have. When insert houses
, the house information will overwrite by the new one. How to achieve this requirement of a person owning multiple houses?
Tag information:
CREATE TAG houses (
code string NOT NULL COMMENT "ID",
name string NOT NULL COMMENT "Name",
... ...
) COMMENT = "house information";
If one ID has several houses, how to write the query statement
to avoid the situation of previous inserting being replaced?
You can create a new
tag
for theproperty
, rather than using the same tag as the person.Then the
person
and thehouse
are associated through arelationship
.