CS3402 Lecture 3

Posted Charonnnnn

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CS3402 Lecture 3相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

CS3402 Lecture 4

CS109 Lecture 3

CS3334 Lecture 3

CS3402 Transactions and Concurrency Control

CS61A 学习笔记 lecture 6 recursion

cs231n spring 2017 lecture13 听课笔记