- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Marc Delisle
- 140字
- 2021-08-20 15:55:26
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:

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

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!
推薦閱讀
- C++面向?qū)ο蟪绦蛟O(shè)計(第三版)
- Learning NServiceBus(Second Edition)
- Flutter開發(fā)實戰(zhàn)詳解
- Java Web開發(fā)之道
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Swift 3 New Features
- Drupal 8 Module Development
- VMware虛擬化技術(shù)
- Python編程實戰(zhàn)
- Android底層接口與驅(qū)動開發(fā)技術(shù)詳解
- HTML 5與CSS 3權(quán)威指南(第3版·上冊)
- 零基礎(chǔ)學(xué)C語言第2版
- Instant Debian:Build a Web Server
- MySQL程序員面試筆試寶典
- FPGA嵌入式項目開發(fā)實戰(zhàn)