View Single Post

  #2 (permalink)  
Old 12-19-2006, 02:15 AM
nixcraft's Avatar
nixcraft nixcraft is offline
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,060
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

MySQL SQL SELECT command is used to retrieve rows selected from one or more tables. It allows you to select mysql table columns.

Login to MySQL
Code:
mysql -u user -p databasename
If your table name is books, to select all columns type command:
Code:
SELECT * FROM books;
Using * is easy, you an specify the column name with following command (let us say column name is author and email):
Code:
SELECT autor, email FROM books;
For more information please see SELECT command syntax
http://dev.mysql.com/doc/refman/5.0/en/select.html
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote