sql server 2005 基础实验
use master go if exists(select name from sys.databases where name=N'Studentselect') drop database Studentselect go create database Studentselect on primary ( name=Studentselect, filename='E:\SQL Server 2005\Studentselect_data.mdf', size=4mb, maxsize=10MB, filegrowth=1MB ) log on ( name=Studentselect_log, filename='E:\SQL Server 2005\Studentselect_log.ldf', size=1MB, maxsize=6MB, filegrowth=1% ) go create table student ( sno char(8) primary key, sname char(8) not null, age int, sex char(2), dept varchar(50) ) create table course ( cno char(4) primary key, cname char(20) not null, credit float,