码迷,mamicode.com
首页 > 其他好文 > 详细

CS3402 Lecture 3

时间:2018-02-04 22:38:23      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:nested   agg   ota   air   serial   objects   asc   ali   pairs   

JSON

JavaScript Object Notation (JSON)

  • Serializing data objects 
  • Human-readable
  • Data Interchange
  • Representing and storing semistructured data 

 

Base Values:
  • Number, String, Boolean, etc
Objects ():
  • Sets of label-value pairs (key-value pairs) 
Arrays []:
  • List of values
{
"book": [
{
         "id":"01",
         "language": "Java",
         "edition": "third",
         "author": "Herbert Schildt"
}, {
      "id":"07",
      "language": "C++",
      "edition": "second",
      "author": "E.Balagurusamy"
}
]
}

Relational VS JSON

Relational JSON

  • Collection of Tables

  • Fixed Schema

  • Simple expressive language

  • Mature native systems 

JSON

  • Collection of Nested Sets and Arrays 
  • Schema not required in advance
  • Not as simple
  • Coupled with programming languages
    • Used in NOSQL systems anddoc-oriented DBMS 

 

JSON and PostgreSQL

 

 

Selecting

 

Filtering

 

 

Aggregation

 

 

 

 

 

 

 

 

 

 

CS3402 Lecture 3

标签:nested   agg   ota   air   serial   objects   asc   ali   pairs   

原文地址:https://www.cnblogs.com/charon922/p/8414251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!