From the course: Learning phpMyAdmin
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Amending the table structure
- You can alter the structure of a table at any time, but it's a lot easier to do so before adding any data. That way you don't end up having to edit the contents of possibly hundreds of database records to match your new structure. Let's take a look at the various options for changing the structure of a table. At the same time, we'll add a new column to the table to store a reference to another table that will be added to the database later. I'm working with the up-and-running database, so I'm going to select that from the panel on the left. That opens the Structure tab for the database. There's only one table in the database at the moment, that's cars. And to see the structure of that table, under Actions click the Structure link. And this shows you the structure of the table. All of the table columns are listed in the same order that they appear in the database table, and car_id has got a gold key icon next to it. That indicates that it's the primary key. Older versions of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Choosing the right column types6m 6s
-
(Locked)
Collation, character sets, and storage6m 2s
-
(Locked)
Defining a table8m 19s
-
(Locked)
Amending the table structure5m 55s
-
(Locked)
Inserting data manually5m
-
(Locked)
Using the Browse tab7m 21s
-
(Locked)
Copying a column definition to another table with central columns7m 24s
-
-
-
-
-
-
-