SELECT * FROM [Customers]
We can write a query to retrieve all informations from all columns of the database using an asterisk (*).
-
SELECT CustomerName FROM customers
SELECT CustomerName, Address FROM customers;
select CustomerName from customers;
SELECT CustomerName FROM customers;
sElEct CustomerName From customers;
-
Note: Multiple lines and non-useful white spaces are ignored in SQL. But its recommended to write your code without non-needed white lines or white spaces.
-
Try the code snaps above via this:
http://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all
Hiç yorum yok:
Yorum Gönder