Professional Documents
Culture Documents
12
Lesson 12
More MySQL and phpMyAdmin
To change the structure of the table. Click on Structure tab. Check the field you want to
edit. Select edit icon to edit or the delete Button to delete the field. The Key icon will make
the field be the primary key.
You should see this dialog box: This dialog box asks you if you want to Save
the file “friends.sql” or Open it using a text editor such as Notepad.
Choose the “Save File” so you’ll be able to save the file which we will use
later on to restore our friends database. Friends.sql is our backup file for our friends
database.
Dropping a Database
Dropping a database involves erasing not only the data but also the
structure of the database. The word “drop” is not the same as “delete” since drop
involves removal of both data and structure while delete involves removal of data
only. Both operations erase the contents of the database but drop does more
than that. Drop is more destructive because it wipes out our database!
To search for particular record or set of records, select the table to search
then click Search tab.
Like operator means the word on value criteria is part of the data value.
The % sign is a wildcard. A wildcard is used to replace any number of
characters.