BitDaddys

BitDaddys
Home

Product Sections
Product Locator
Email Utilities
Database Utilities
Other Products

Reference Sections
Articles
MySQL
Outlook - Import EML
.net Network Security
Flash
Fireworks
PHP
DB/C
Java
Email File Extensions
EML email file extension
MSG email file extension
TNEF email file extension
TXT email file extension
HTML email file extension
Java Script

OISV - Organization of Independant Software Vendors - Charter Member

Recommended Links

Get Firefox



Get Thunderbird  

MySQL

Find good sites at
Find good sites at Gimpsy  

 

Web Master:

Keith Birchfield


MSGDETACH
MySQL Data Backup Tool
BitDaddys Corp.
$12.00

More Info
Free Trial
Buy Now!
Unique and Easy to use MySQL Database backups. Powerful Hourly Rotations. more ...
MySQL Tutorials Table Of Contents
Part 1: Start MySQL and Create Databases and Tables (Create)
Part 2: Add Data (Insert and Replace)
Part 3: Show Data (Select)
Part 4: Delete Data (Delete and Drop)
Part 5: Backup Data (Dump)
How to use C# and MySQL Connector/Net

How to use MySQL 5 Part 3: Selecting Data
(greatly simplified)

This article and tutorial describes and demonstrates how you can:

  • [ click here ] Reading an Entire Table With Select *
  • [ click here ] Reading only certain Columns With Select Column_Name
  • [ click here ] Reading only certain Data With Select Where
  • [ click here ] Reading Totals and Similar With Select Sum, Avg, Min, Max, Count

What is the MySQL SELECT Command?

The MySQL SELECT command is how you get information from the tables you create and use. It is the primary way of reading information from your mysql database.

SELECT SYNTAX

How do I read all the data from a MySQL 5 Database Table using the Select Command?

Steps To Read all of theData in a table using the
MySQL SELECT Command

Visual Demonstration
  1. Open the MySQL Command Line and select your database
  2. Type 'SELECT'
  3. Type An asteric for all columns '*'
  4. Type From and your table name 'FROM mytable;'

Syntax:

Select * From MyTable

"SELECT is used to retrieve rows selected from one or more tables, and can include UNION statements and subqueries. ... "

more info...

[ return to top ]


How do I read only certain columns from a MySQL Table?

The MySQL SELECT command can be used to Read specfic information. You don't have to look at every piece of information available, instead you can just look at fields or columns you want to see.

SELECT SYNTAX

Steps To Read Specific Column Data using the
MySQL SELECT Command

Visual Demonstration
  1. Open the MySQL Command Line and select your database
  2. Type 'SELECT'
  3. Type the list of column names you want to see 'id,x'
  4. Type From and your table name 'FROM mytable;'

Syntax:

Select Customer_Number,Customer_Name From MyCustomers;

more info...

[ return to top ]


How do I read only certain rows of data from a MySQL Table?

The MySQL SELECT command can be used to Read specfic rows. You don't have to look at every line of information available, instead you can just look at rows you want to see.

SELECT SYNTAX

Steps To Read Specific Row Data using the
MySQL SELECT Command With WHERE

Visual Demonstration
  1. Open the MySQL Command Line and select your database
  2. Type 'SELECT'
  3. Type the list of column names you want to see 'id,x'
  4. Type From and your table name 'FROM mytable'
  5. Type Where and your criteria 'WHERE id>102;'

Syntax:

Select Customer_Number,Customer_Name From MyCustomers Where Customer_Number>100;

You can use compartive operators like:

  • > (greater than)
  • < (less than)
  • = (equals)
  • != (not equal)
  • >= (greater than or equal)
  • <= (less than or equal)

more info...

[ return to top ]

 


How do I read and aggregate certain columns in a MySQL Table?

The MySQL SELECT command can be used to Read specfic information. You can do things like get totals, count how many items are available, get the smallest item, get the largest column and even average a field.

SELECT SYNTAX

Steps To Read and Perform Specific Functions on Column Data using the
MySQL SELECT Command

Visual Demonstration
  1. Open the MySQL Command Line and select your database
  2. Type 'SELECT'
  3. Type the aggregate function name and the column name you want to perform the function on 'max(id);'
  4. Type From and your table name 'FROM mytable'

Syntax:

Select Min(Price) From PriceList Where Item='Books';

or

Select Count(*) From MyCustomers;

or

Select Sum(Amount) From Sales Where ItemSold='Pizza'';

Aggregate (also known as Summary) functions include:

  • min (minimum)
  • max (maximum)
  • avg (avergage)
  • count (count)
  • sum (total)

more info...

[ return to top ]

 

 

 

 
OISV - Organization of Independant Software Vendors - Charter Member
Highlighted Products
EML and MSG converter
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Convert eml and msg Files into EML, MSG,TXT, TNEF, HTML more ...

outlookSpiller
EML and MSG Exporter

BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Export eml, msg, tnef, txt and HTML Files from Outlook more ...

MSGDETACH
mboxPack
BitDaddys Corp.
$10.00

More Info
Free Trial
Buy Now!
Pack email files into mbox files. Plain text, individual eml,msg,txt files to Thunderstor compatable and ready to use mbox more ...

MSGDETACH
MSGDETACH
BitDaddys Corp.
$14.00

More Info
Free Trial
Buy Now!
Detach Email Attachments from your Email and Save them wherever you want! Extract your message attachments from Outlook msg files. more ...

PopTransAct
BitDaddys Corp.
$19.95

More Info
Free Trial
Buy Now!
POP3 Email Transfers and Actions. Extract, Archive Save and Merge Attachments. Archive and forward Messages from any POP3 Account, even gmail! more ...

outlookFiller
BitDaddys Corp.
$12.00

More Info
Free Trial
Buy Now!
Import eml and msg Files into Outlook more ...

O2X
ODBC 2 C#
BitDaddys Corp.
$5.00

More Info
Free Trial
Buy Now!
Convert ODBC table information into a c# class and a ready to use Visual Studio 2003 project more ...

emlBridge
BitDaddys Corp.
$12.00

More Info
Free Trial
Buy Now!
Import eml Files into nearly any Email Client. With emlBridge you can import rfc822 standard text email files into programs like Outlook, Thunderbird and Outlook Express more ...


Google

About Us | Site Map | Privacy | Contact Us | ©2008 BitDaddys Corp.