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

Creating an additional table

In our (simple) design, we know that we need another table—the author table. The author table will contain:

  • Author identification
  • Full name
  • Phone number

To create this table, we go back to the Database view for marc_book and request the creation of another table with three columns as indicated in the following screenshot:

Creating an additional table

Using the same techniques used when creating the first table, we type this in:

Creating an additional table

As we have three columns or less, the display is now in vertical mode (refer to the Vertical mode section in Chapter 5 for more details).

The column name id, which is our primary key in this new table, relates to the author_id column from the book table. After saving the table structure, we enter some data for authors 1 and 2. Use your imagination for this!

主站蜘蛛池模板: 清徐县| 赫章县| 汤原县| 依兰县| 秦皇岛市| 木里| 山丹县| 化州市| 留坝县| 买车| 岳池县| 泰顺县| 环江| 英德市| 福鼎市| 泊头市| 上林县| 汉沽区| 始兴县| 二连浩特市| 吉安县| 黎平县| 呼图壁县| 阳山县| 海口市| 井陉县| 滦平县| 乌兰浩特市| 苍山县| 博爱县| 沅江市| 西充县| 田林县| 成武县| 潼南县| 邵阳市| 霞浦县| 库伦旗| 河北省| 安西县| 乐亭县|