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

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!

主站蜘蛛池模板: 宕昌县| 蕉岭县| 山东| 宁城县| 蕲春县| 特克斯县| 鹿邑县| 资中县| 大兴区| 通城县| 铜川市| 镶黄旗| 长宁区| 来宾市| 新源县| 临西县| 凌海市| 通化县| 安徽省| 襄城县| 宁乡县| 利川市| 斗六市| 东光县| 新河县| 北辰区| 芷江| 开江县| 清镇市| 丘北县| 永顺县| 长丰县| 遵化市| 汉中市| 揭东县| 赣榆县| 林甸县| 吴桥县| 永州市| 会宁县| 安化县|