scribble

吕小荣

Blog Friends RSS About

Database: What's the difference between set, bag, and list?

In database course of Carnegie Melon University, Professor Andy mention several import concepts of database, set, list and bag.

What’s the difference? Here is the answer.

  order duplicate
set unorder without duplicate
list ordered with duplicate
bag unordered with duplicate

Reference

  1. https://cs.wellesley.edu//~cs230/spring07/lectures/lec13_sets_bags_tables/lec13_sets_bags_tables.pdf

  2. Stackoverflow: Difference between Set and Bag in Hibernate

  3. CMU Database Systems - 01 Course introduction & Relational Data Model (Fall 2018)


吕小荣
15 February 2019