官术网_书友最值得收藏!

A table for status updates

In the MyStatus application, we'll begin by creating a timeline of status updates for each user. Users can view their friends' status updates by accessing the timeline of the friend in question.

The user timeline requires a new level of organization, which we didn't see in the users table that we created in the previous chapter. Specifically, we have two requirements:

  • Rows (inpidual status updates) should be logically grouped by a certain property (the user who created the update)
  • Rows should be accessible in a sorted order (in this case, by creation date)

Fortunately, compound primary keys provide exactly these qualities.

主站蜘蛛池模板: 江都市| 呼伦贝尔市| 开阳县| 漳平市| 罗田县| 广昌县| 逊克县| 海伦市| 五寨县| 定襄县| 广州市| 株洲市| 元江| 通州区| 福海县| 县级市| 集安市| 朔州市| 杂多县| 南溪县| 泗水县| 海丰县| 登封市| 湘潭市| 静安区| 岳阳市| 横山县| 阳曲县| 竹北市| 襄汾县| 锦州市| 内黄县| 濮阳市| 莱芜市| 庆元县| 南通市| 泰兴市| 彩票| 静海县| 道孚县| 察雅县|