摘要: use YGGL--查询每个雇员的所有数据select * from Employees--查询雇员表中的地址和电话select Addres,PhoneNum from Employees--查询Employees表中的部门号和性别(消除重复行)select De... 阅读全文
posted @ 2018-02-05 19:13 王雪亮 阅读(1483) 评论(1) 推荐(1) 编辑
摘要: use YGGL--Departments表数据的填充insert into Departments values(1,'财务部',null)insert into Departments values(2,'人力资源部',null)insert into Depar... 阅读全文
posted @ 2018-02-05 18:33 王雪亮 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 数据库文件的修改--为数据库增加文件alter database YGGL2add file(name="test",filename="C:\Program Files\Microsoft SQL Server\MSSQL11.WANGXUELIANG\MSSQL\... 阅读全文
posted @ 2018-02-05 18:21 王雪亮 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 数据库的创建create database YGGL2on(name="YGGL2",filename="C:\Program Files\Microsoft SQL Server\MSSQL11.WANGXUELIANG\MSSQL\DATA\YGGL2.mdf",... 阅读全文
posted @ 2018-02-05 18:13 王雪亮 阅读(129) 评论(0) 推荐(0) 编辑