eHow launches Android app: Get the best of eHow on the go.

How To

How to Perform a Simple MySQL All Query

Contributor
By eHow Contributing Writer
(1 Ratings)

Tons of data can be stored within a MySQL database. With its capability to store large amounts of data, accessing a single piece of information within the MySQL database can seem like a daunting task. If you can perform a simple MySQL all query, that daunting task is reduced to simplicity. Read on to learn how to perform a simple MySQL all query.

Difficulty: Moderately Challenging
Instructions

Things You'll Need:

  • Computer
  1. Step 1

    Run the "MySQL" database. At the command prompt, enter the following code: "Select clmn_name FROM tbl_name."

  2. Step 2

    Input the corresponding table label on the "Tbl_Name" entry. You must also specify the column label within the table on the "Clmn_Name" entry. Make sure that you put in the correct table and column names to receive relevant results.

  3. Step 3

    Look over the code that you have entered at the command prompt. Make sure your query doesn't contain items that may refer to user variables, user-defined functions or tables within the MySQL system database.

  4. Step 4

    Wait for the MySQL engine to display the results. Complicated queries may take the system some time to answer.

  5. Step 5

    Examine the results of your query. Make sure that the query has given you the data that you want.

  6. Step 6

    Re-enter your query if the result wasn't what you wanted. You may need to check the column or table names in the SQL database to ensure that you are wording the query correctly.

Tips & Warnings
  • Avoid using common SQL commands in the query. This can result in faulty queries that do not return the requested information.
  • Check the spelling of your query if you are having problems performing a simple search of your database.
  • If you have made changes to your SQL tables, your queries may not be able to find the information that you need.
Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2010 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy .   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. † requires javascript

eHow Computers
eHow_eHow Technology and Electronics