Message-ID: <4iMg8Y$bKj@bbs.sjtu.edu.cn>
Subject: Re: �������2��SQL���(with��unique)
Date: Mon, 12 Oct 2009 03:02:26 +0000
From: Dem.bbs@bbs.sjtu.edu.cn (Galaxy��VOLUNTEERS��Database)
Path: 74.82.202.154!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.database.mbox.zip!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cuhk.edu.hk!www.shinco.com!news.shec6.edu.cn!SJTU
Newsgroups: cn.bbs.comp.database
Organization: ��水思源
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: database/M.1255316386.A
Xref: 74.82.202.154 cn.bbs.comp.database:9877

����啥��库。�����������一��With��写����SQL Server�模����诙����Unique��Ora
cle�摹�����
�� �� McWang (SJTU-X) �拇������到: ��
: ���撕镁没��遣��校�����说���法�写?�����������前�����师��姆����式写�摹�����
: 要抓���耍����芸���指�,�浅���谢��
: 1.����枪���with�模�
: with isbnAndLib(isbn,lib_name) as
: (select distinct isbn, lib_name
: from in_stock)
: select isbn from isbnAndLib��
: ����执��with isbnAndLib(isbn,lib_name) as
: (select distinct isbn, lib_name
: from in_stock)��也���校���isbnAndLib���������去��也���小�
: .................������省�裕�

--
Welcome to Database Board
��迎������菘��
http://bbs.sjtu.edu.cn/bbsdoc?board=database

�� ��源:����水思源 bbs.sjtu.edu.cn��[FROM: 207.46.55.30]