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

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.

主站蜘蛛池模板: 洛阳市| 南部县| 抚松县| 随州市| 察隅县| 措勤县| 玉龙| 延边| 武定县| 黎川县| 漳浦县| 苍南县| 西贡区| 城口县| 任丘市| 渭南市| 呼和浩特市| 泰州市| 区。| 莱芜市| 富裕县| 辽中县| 宜阳县| 沂南县| 辽源市| 应城市| 彝良县| 江源县| 教育| 新绛县| 溧阳市| 邻水| 丹凤县| 二手房| 鹰潭市| 辽阳市| 宜兰市| 兴和县| 台南市| 巫山县| 文水县|