/*
±êÌ⣺һ¸öÏîÄ¿Éæ¼°µ½µÄ50¸öSQLÓï¾ä(ÕûÀí°æ)
×÷Õߣº°®Ð¾õÂÞ.ع»ª
ʱ¼ä£º2010-05-10
˵Ã÷£ºÒÔÏÂÎåÊ®¸öÓï¾ä¶¼°´ÕÕ²âÊÔÊý¾Ý½øÐйý²âÊÔ£¬×îºÃÿ´ÎÖ»µ¥¶ÀÔËÐÐÒ»¸öÓï¾ä¡£
ÎÊÌâ¼°ÃèÊö£º
--1.ѧÉú±í
Student(S#,Sname,Sage,Ssex) --S# ѧÉú±àºÅ,Sname ѧÉúÐÕÃû,Sage ³öÉúÄêÔÂ,Ssex ѧÉúÐÔ±ð
--2.¿Î³Ì±í
Course(C#,Cname,T#) --C# --¿Î³Ì±àºÅ,Cname ¿Î³ÌÃû³Æ,T# ½Ìʦ±àºÅ
--3.½Ìʦ±í
Teacher(T#,Tname) --T# ½Ìʦ±àºÅ,Tname ½ÌʦÐÕÃû
--4.³É¼¨±í
SC(S#,C#,score) --S# ѧÉú±àºÅ,C# ¿Î³Ì±àºÅ,score ·ÖÊý
*/
--´´½¨²âÊÔÊý¾Ý
create table Student(S# varchar(10),Sname nvarchar(10),Sage datetime,Ssex nvarchar(10))
insert into Student values('01' , N'ÕÔÀ×' , '1990-01-01' , N'ÄÐ')
insert into Student values('02' , N'Ç®µç' , '1990-12-21' , N'ÄÐ')
insert into Student values('03' , N'Ëï·ç' , '1990-05-20' , N'ÄÐ')
insert into Student values('04' , N'ÀîÔÆ' , '1990-08-06' , N'ÄÐ')
insert into Student values('05' , N'ÖÜ÷' , '1991-12-01' , N'Å®')
insert into Student values('06' , N'ÎâÀ¼' , '1992-03-01' , N'Å®')
insert into Student values('07' , N'Ö£Öñ' , '1989-07-01' , N'Å®')
insert into Student values('08' , N'Íõ¾Õ' , '1990-01-20' , N'Å®')
create table Course(C# varchar(10),Cname nvarchar(10),T# varchar(10))
insert into Course values('01' , N'ÓïÎÄ' , '02')
insert into Course values('02' , N'Êýѧ' , '01')
insert into Course values('03' , N'Ó¢Óï' , '03')
create table Teacher(T# varchar(10),Tname nvarchar(10))
insert into Teacher values('01' , N'ÕÅÈý')
insert into Teacher values('02' , N'ÀîËÄ')
insert into Teacher values('03' , N'ÍõÎå')
create table SC(S# varchar(10),C# varchar(10),score decimal(18,1))&nbs
1. ʲôÊÇÃüÃû¹ÜµÀ£¿
ÓëTCP/IP£¨´«Êä¿ØÖÆÐÒé»òinternetÐÒ飩һÑù£¬ÃüÃû¹ÜµÀÊÇÒ»ÖÖͨѶÐÒé¡£ËüÒ»°ãÓÃÓÚ¾ÖÓòÍøÖУ¬ÒòΪËüÒªÇó¿Í»§¶Ë±ØÐë¾ßÓзÃÎÊ·þÎñÆ÷×ÊÔ´µÄȨÏÞ¡£
Òª½âÊÍÕâ¸öÎÊÌ⣬ÎÒ»¹ÊÇժ¼΢Èí¹Ù·½µÄ×ÊÁϱȽϺÃ
http://msdn.microsoft.com/zh-cn/library/ms187892.aspx
ÈôÒªÁ¬½Óµ½ SQL Server Êý¾Ý¿âÒýÇ棬±ØÐëÆô ......