Mysql 2: SELECT
Written by: maffelu , 2009-04-16 18:06:37
|--------------------+--------------------+--------------------|
|Name |Age |Gender |
|____________________+____________________+____________________|
|Bob 34 Male |
|Silvia 67 Female |
|Magnus 24 Male |
|Lisa 32 Female |
+-------------------------------------------------------------+
SELECT Name
FROM person;
|--------------------
|Name |
|____________________
|Bob |
|Silvia |
|Magnus |
|Lisa |
+---------------------+
SELECT Name, Age
FROM person;
|--------------------+--------------------|
|Name |Age |
|____________________+____________________|
|Bob 34 |
|Silvia 67 |
|Magnus 24 |
|Lisa 32 |
+-----------------------------------------+
SELECT *
FROM person;
|--------------------+--------------------+--------------------|
|Name |Age |Gender |
|____________________+____________________+____________________|
|Bob 34 Male |
|Silvia 67 Female |
|Magnus 24 Male |
|Lisa 32 Female |
+-------------------------------------------------------------+
There are no comments on this article.
If you have any question or just want to leave a message, just fill out the form below!
Your e-mail will not be visible in your post, it is for validation reasons only
Maffelu
Creator and admin of MorkaLork.com.
Started programming in HTML back when frames and tables was the way to design a page, moved on to Pascal/Delphi, PHP, javascript/jQuery, VB.NET/C#, Java and C++.
Currently studies .NET (in general) focusing on ASP.NET.