Searching through a Database with phpMyAdmin

This tutorial assumes you’ve already logged in to phpMyAdmin

Now let’s learn how to run SQL Queries on a database

1. Click the Database Table you wish to run a SQL query on on the left

Run SQL Query on Database - phpMyAdmin - Database Index

2. As demonstrated in this tutorial, you can delete (or drop) a field from a table by selecting it and clicking the Drop icon

Run SQL Query on Database - phpMyAdmin - Database Commands

In this tutorial however, let’s demonstrate how to Delete this address field using pure SQL commands

3. Click the SQL button

4. Type the SQL command to delete the Address field from the Details Table. Click Go when finished

Run SQL Query on Database - phpMyAdmin - SQL Query

That’s it! the SQL command has been executed. Let’s go take a look

The address field is no longer in our Details Table

Run SQL Query on Database - phpMyAdmin - Database Details

You can also click the SQL button directly from the table view (instead of from the database view as above),doing so presents a SQL query window that is partially filled in

Run SQL Query on Database - phpMyAdmin - Database SQL

For more information on learning about SQL query syntax, visit the MySQL documentation available

This is the end of the tutorial. You now know how to run SQL queries on a database using phpMyAdmin

What Our Customers say...