Linux / UNIX Tech Support Forum
This is a discussion on Mysql how to specify select columns within the Databases servers forums, part of the Mastering Servers category; Dear All, I am new to MySQL and SQL coding. Just wondering how do I display some (selected) or all ...
|
|||||||
| Databases servers Discussions of databases of all types - especially MySQL. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
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 Code:
SELECT * FROM books; Code:
SELECT autor, email FROM books; http://dev.mysql.com/doc/refman/5.0/en/select.html
__________________
Vivek Gite Linux Evangelist |
|
||||
|
Thanks for quick reply and yup, SELECT autor, email FROM books; did the trick for me.
This is what I am using: Code:
SELECT puser, email FROM mailinglist;
__________________
Raj Linux rulz. I have never turned back in my life ; I shall not do so today.. haha |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Create output in columns | rakeshrhn | Shell scripting | 5 | 07-12-2007 06:27 PM |
| Select specific rows | c341 | Shell scripting | 6 | 18-01-2007 02:04 AM |
| help me in editing this columns | sureshbup | Shell scripting | 1 | 12-12-2006 02:29 PM |
| rearranging columns in a text file | sureshbup | Shell scripting | 2 | 06-12-2006 09:43 AM |
| Calculations across different lines & columns of a file | Guest | Shell scripting | 2 | 16-09-2005 04:18 AM |