Sql 学习笔记
一、数据库的基本操作 1. 数据库的创建 If Exists(Select Name from SysDatabases Where Name='Gmis_2009') Drop DataBase Gmis_2009 Go Create Database Gmis_2009 On Primary ( Name=Gmis_2009_data, FileName='C:\program Files\Data\Gmis_2009.mdf', Size=10MB, Filegrowth=1MB ), Filegroup FileGroup_Gmis_2009_1 ( Name=Gmis_2009_data_1, FileName='C:\programFiles\Data\Gmis_2009_data_1.ndf', Size=2MB, MaxSize=10MB, FileGrowth=1MB ), ( Name=Gmis_2009_data_2, FileName='C:\program Files\Data\Gmis_2009_data_2.ndf', Size=2MB, MaxSize=10MB, FileGrowth=1MB ), FileGroup FileGroup_Gmis_2009_2 ( Name=Gmis_2009_data_3, FileName='C: