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

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!

主站蜘蛛池模板: 南丹县| 辉南县| 镇巴县| 巴马| 洛扎县| 承德市| 庄河市| 城市| 石渠县| 宜城市| 平罗县| 腾冲县| 泰州市| 乌兰察布市| 弋阳县| 同心县| 彭泽县| 嘉黎县| 平阴县| 澄迈县| 亚东县| 苏尼特右旗| 湟中县| 佛坪县| 宁安市| 安义县| 班玛县| 威海市| 秦安县| 怀远县| 温宿县| 昭觉县| 博湖县| 尼勒克县| 宁海县| 集贤县| 松江区| 安庆市| 当涂县| 北票市| 延边|