当前位置:网站首页>Basic learning of SQL Server -- creating databases and tables with the mouse

Basic learning of SQL Server -- creating databases and tables with the mouse

2022-07-07 23:49:00 Xiaobai learning software

This section uses the mouse to create databases and tables , The previous section is about creating a database with code And table

So don't read this section

1. Right click database , Click new database , Establish a database of student course selection (SCT).

2. Create a table , And enter the properties , Create a primary key according to the attributes of the table .

Sa The little key next to it means primary key ( Right click     The small key is in the frame   that will do )

3. Set up Ssex Default value of property

 4. After setting properties , Save the table , Enter a name for the table “Student”

5. After refreshing the table , Right click the created table dbo.Student—— Edit the first two hundred lines —— input data

6. input data , Click on the next line

7. Establish departments in the above way Dept surface , Teachers' Teacher, Course Course, Course selection SC surface

departments Dept Table attributes and data

Teachers' Teacher Table attributes and data

Course Course Table attributes and data

Course selection SC Table attributes and data

8. Five tables are established , give the result as follows

原网站

版权声明
本文为[Xiaobai learning software]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130554539434.html