-
Notifications
You must be signed in to change notification settings - Fork 0
Scalar是什么
Chen Xiaojie edited this page Dec 18, 2022
·
1 revision
在数据库中,如果一个属性attribute是 scalar 的,意味着它只能有一个数值来源,如:
{
"userId": "0001",
"name": "kyakya"
}
而非 scalar 的属性attribute则像 hobbies
那样是一个数组:
{
"userId": "0001",
"name": "kyakya",
"hobbies": [ "video game", "crossdressing" ]
}
也可以像 work
那样,是一个内嵌对象nested object:
{
"userId": "0001",
"name": "kyakya",
"work": {
"phone": "080-xxxx-xxxx",
"contry": "Japan"
}
}
具体查看该网址: