Edit Article

Edited by Kanhu, Teresa, BR, Rile Ray and 2 others

If you need to build a SQL query, you can choose one of two alternatives. The first and a rather old way is using a console. But if you build your queries in MySQL console, you have to remember all commands and keys. This is not a convenient way, because query execution is a time-consuming process.


Another way is to use some graphical interfaces for MySQL. It can fulfill many developers' requirements, including query execution. Here is how to do a step-by-step query execution process using dbForge Studio for MySQL as an example. With this MySQL GUI tool, you can execute your query only keeping an account information (login, password) in your memory. The GUI tool will save you a lot of time and will help to prevent errors, as you will be able to create queries in a visual query editor.

Ad

EditSteps

  1. Execute an SQL Query Step 1.jpg
    1
    Fill in the following fields. Host: localhost (by default); User: user_name; Password: user_password. After this, choose a database you want to use.
    Ad
  2. Execute an SQL Query Step 2.jpg
    2
    Click on the Query Builder icon and take a look at the left side of your screen. You will see the Database Explorer area.
  3. Execute an SQL Query Step 3.jpg
    3
    In Database Explorer, click on the plus and choose schema objects you are going to work with. Move them to the query document located in the middle of your screen.
  4. Execute an SQL Query Step 4.jpg
    4
    If you want, you can select another table and also move it to the query document. The tool will automatically generate joins between objects (if any).
  5. Execute an SQL Query Step 5.jpg
    5
    Perform any actions with schema objects and press F5.
    Ad
Add your own method
Save

EditVideo



Article Info

Categories: MySQL

Recent edits by: Ron D, Rile Ray, BR

Ad

Thanks to all authors for creating a page that has been read 3,692 times.

Was this article accurate?

YesNo

Become
an Author!

Write an Article