2015. 6. 7. 18:37

http://www.w3schools.com/


The SELECT statement is used to select data from a database.

The result is stored in a result table, called the result-set.

SQL SELECT Syntax

SELECT column_name,column_name
FROM table_name;

and

SELECT * FROM table_name;


SELECT Column Example

The following SQL statement selects the "CustomerName" and "City" columns from the "Customers" table:

Example

SELECT CustomerName,City FROM Customers;

Try it yourself »

SELECT * Example

The following SQL statement selects all the columns from the "Customers" table:

Example

SELECT * FROM Customers;

Try it yourself »


'SQL' 카테고리의 다른 글

WHERE Clause  (0) 2015.06.07
SELECT DISTINCT Statement  (0) 2015.06.07
SQL Syntax  (0) 2015.06.07
Introduction to SQL  (0) 2015.06.07
데이터베이스의 이해 from Byung Kook Ha  (0) 2014.12.25
Posted by Name_null