根据以上5个关系模式,在sql server创建了数据库taxi,并为每一个关系模式创建了一个表
分别是:client_info,car_info,provider_info,reserve_info,price_info.
3.sql语句
从sql server 导出的sql文件得到的:
/****** object: database taxi script date: 2004-9-11
if exists (select name from master.dbo.sysdatabases where name = n'taxi')
drop database [taxi]
go
create database [taxi] on (name = n'taxi_data', filename = n'c:\program files\microsoft sql server\mssql$ince1\data\taxi_data.mdf' , size = 2, filegrowth = 10%)
collate chinese_prc_ci_as
go
exec sp_dboption n'taxi', n'autoclose', n'true'
go
exec sp_dboption n'taxi', n'bulkcopy', n'false'
go
exec sp_dboption n'taxi', n'trunc. log', n'true'
go
exec sp_dboption n'taxi', n'torn page detection', n'true'
go
exec sp_dboption n'taxi', n'read only', n'false'