First, what is a database? What is SqlServer? What database?
The concept: The database is "in accordance with the data structure to organize, store and manage data warehouse." Is a long-term storage in the computer, organized, shared, unified management of data collection.
=Is a standard computer language used to access and manipulate databases.=
1), then the database what the?
Two, sql grammar
sql selcet statement:
the SELECT is a database query, the query for the required data from the table. The results are stored in a result table (also called a result set).
SELECT name FROM table column names
such as:
use StudentDB //使用哪个数据库,此处切换到StudentDB 数据库
select * from student
查询语句,查询student表中的所有数据。
result:
SELECT * FROM 表名称 “*”表示查询所有的,即:星号(*)是选取所有列的快捷方式。
=Note: SQL statements are not case sensitive. SELECT equivalent to select.=