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
2. As demonstrated in this tutorial, you can delete (or drop) a field from a table by selecting it and clicking the Drop icon
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
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
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
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