锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产精品日韩av不卡在线,亚洲影视自拍揄拍愉拍,亚洲午夜电影在线观看http://www.tkk7.com/kiant/category/39361.html鏈夋墠鑰屾х紦瀹氬睘澶ф墠錛屾湁鏅鴻屾皵鍜屾柉涓哄ぇ鏅恒備漢鍋忕嫮鎴戝彈涔嬩互瀹藉錛屼漢闄╀粍鎴戞寔涔嬩互鍧﹁崱銆傜紦浜嬪疁鎬ュ共錛屾晱鍒欐湁鍔燂紱鎬ヤ簨瀹滅紦鍔烇紝蹇欏垯澶氭帾銆? --鏉庡彅鍚?/description>zh-cnWed, 05 May 2010 14:34:24 GMTWed, 05 May 2010 14:34:24 GMT60@@IDENTITY錛孲COPE_IDENTITY鍜孖DENT_CURRENThttp://www.tkk7.com/kiant/articles/318910.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Tue, 20 Apr 2010 14:42:00 GMThttp://www.tkk7.com/kiant/articles/318910.htmlhttp://www.tkk7.com/kiant/comments/318910.htmlhttp://www.tkk7.com/kiant/articles/318910.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/318910.htmlhttp://www.tkk7.com/kiant/services/trackbacks/318910.html 鍐呭寮曠敤鑷細
@@IDENTITY錛孲COPE_IDENTITY鍜孖DENT_CURRENT鐨勮鯨鏋?
http://www.cnblogs.com/xlong1900/archive/2008/09/01/1281001.html



@@IDENTITY錛孲COPE_IDENTITY鍜孖DENT_CURRENT鐨勮鯨鏋?/strong>

SQLServer涓瑻@IDENTITY錛孲COPE_IDENTITY鍜孖DENT_CURRENT鐨勪綔鐢?br /> 鐩稿悓鐐癸細
瀹冧滑閮借繑鍥炴彃鍏ュ埌IDENTITY鍒椾腑鐨勫?/span>銆?br />
涓嶅悓鐐癸細

銆銆A.  @@IDENTITY涓嶅彈浣滅敤鍩燂紙瀛樺偍榪囩▼銆佽Е鍙戝櫒銆佸嚱鏁版垨鎵瑰鐞嗭級鐨勯檺鍒躲傝繑鍥炴渶鍚庝竴涓彃鍏ョ殑IDENTITY鍊?/span>銆傚鏋滃湪紼嬪簭涓笉鍚岀殑浣滅敤鍩熸彃鍏ョ殑琛ㄤ笉鍚岋紝閭d箞榪斿洖鏈鍚庝竴涓〃鎻掑叆鐨処DENTITY鍊箋備緥濡傦細浣滅敤鍩烝錛堝瓨鍌ㄨ繃紼嬶級鍦ㄨ〃T1涓婃彃鍏DENTITY鍒楋紝鑰孴1涓婄殑瑙﹀彂鍣ㄤ細鍦═2涓婃彃鍏DENTITY鍒椼傚垯鐢ˊ@IDENTITY榪斿洖T2涓婃彃鍏ョ殑IDENTITY鍊箋?br />
銆銆B. SCOPE_IDENTITY()鍙椾綔鐢ㄥ煙鐨勯檺鍒訛紝鍙繑鍥炲綋鍓嶄綔鐢ㄥ煙涓殑鏈鍚庝竴涓狪DENTITY鍊?/span>銆備笂渚嬩腑錛屽鏋滃湪瀛樺偍榪囩▼涓嬌鐢⊿COPE_IDENTITY()錛屽垯榪斿洖T1鐨処DENTITY鍊箋?br />
銆銆C. IDENT_CURRENT()涓嶅彈浣滅敤鍩熺殑闄愬埗錛岃皟鐢ㄥ畠鏃跺繀欏繪彁渚涜〃紺鴻〃鍚嶇殑瀛楃鍨嬪弬鏁幫紝浣犲彲浠ュ緱鍒頒綘鎯寵鐨勪換浣曡〃鐨勬渶鍚庝竴涓狪DENTITY鍊鹼紝鍗充嬌浣犵殑浠g爜閲屾病鏈夋彃鍏ュ姩浣?/span>銆備緥濡傦細IDENT_CURRENT('T1')錛?br />

緇忛獙錛?/strong>
銆銆鏍規嵁涓嶅悓鐨勪嬌鐢ㄥ満鍚堬紝閫夋嫨涓嶅悓鐨勫嚱鏁般傚鏋滃湪鍐欏瓨鍌ㄨ繃紼嬫椂錛屽悜琛ㄤ腑鏂板浜嗕竴鏉℃暟鎹紝闇瑕佽繑鍥炶IDENTITY鍊鹼紝鍒欎嬌鐢?nbsp;SCOPE_IDENTITY()錛屽洜涓哄畠鍜屽綋鍓嶄細璇濈浉鍏寵仈錛屼笉浼氳繑鍥炰竴涓綘涓嶉渶瑕佺殑鍊箋傚鏋滀綘浠呬粎鎯沖緱鍒版煇涓狪DENTITY鍒楃殑鏈鍚庝竴涓鹼紝鍒欎嬌鐢?nbsp;IDENT_CURRENT()鏈鏂逛究銆?br />


]]>
SQL Server銆丮ySQL鍜?Oracle鐨勮鍚堝茍http://www.tkk7.com/kiant/articles/317866.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Fri, 09 Apr 2010 08:24:00 GMThttp://www.tkk7.com/kiant/articles/317866.htmlhttp://www.tkk7.com/kiant/comments/317866.htmlhttp://www.tkk7.com/kiant/articles/317866.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/317866.htmlhttp://www.tkk7.com/kiant/services/trackbacks/317866.html 鍐呭寮曡嚜錛?br /> 澶氳涓鍒楁暟鎹悎騫舵垚涓琛屼竴鍒楁暟鎹?br /> http://topic.csdn.net/u/20090714/17/5FE6A0F7-CE78-4936-BE31-21D462236059.html

鍦∕ySQL鍜孫racle涓疄鐜拌鍚堝茍
http://www.tkk7.com/rain1102/archive/2009/06/24/283867.html


SQL Server
--SQL2005涓殑鏂規硶2 
create table tb(id int, value varchar(10)) 
insert into tb values(1'aa'
insert into tb values(1'bb'
insert into tb values(2'aaa'
insert into tb values(2'bbb'
insert into tb values(2'ccc'
go 

select id, [values]=stuff((select ','+[value] from tb t where id=tb.id 
for xml path('')), 11''
from tb 
group by id 

/* 
id          values 
----------- -------------------- 
1          aa,bb 
2          aaa,bbb,ccc 

(2 row(s) affected) 

*/ 

drop table tb 


MySQL
select name , group_concat(email order by email separator ", ") as email from student group by name


Oracle
濡傛灉浠ヤ笂鏁堟灉鎯沖湪Oracle涓樉紺? 鍒欐瘮杈冨鏉傜偣浜? 鍥犱負Oracle涓病鏈夎鍚堝茍鍑芥暟, 鍒欓渶瑕佷嬌鐢╯ys_connect_by_path()鏉ュ疄鐜? 浠g爜濡備笅:
select name, ltrim(sys_connect_by_path(email,','),',') email from(
select name,email,
row_number() 
over(partition by name order by email) rn,
count(*over(partition by name) cnt
from student 
where level = cnt
start 
with rn = 1
connect 
by prior name = name and prior rn + 1 = rn 


]]>
SQL 涓瓨鏀?varbinary鍨嬫暟鎹?/title><link>http://www.tkk7.com/kiant/articles/295086.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Tue, 15 Sep 2009 00:49:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/295086.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/295086.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/295086.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/295086.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/295086.html</trackback:ping><description><![CDATA[<br /> 杞澆鑷府鍔╂枃妗?<br /> ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.zh-CHS/s10de_6tsql/html/f47eda43-33aa-454d-840a-bb15a031ca17.htm<br /> <br /> <h3 class="subHeading" xmlns="">浣跨敤甯︽湁 BULK 閫夐」鐨?OPENROWSET</h3> <div id="p1993f3" class="subSection" xmlns=""><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"> <p xmlns="">浠ヤ笅 Transact-SQL 澧炲己鍔熻兘鏀寔 OPENROWSET(BULK...)鍑芥暟錛?/p> <ul xmlns=""> <li>涓?SELECT 涓璧蜂嬌鐢ㄧ殑 FROM 瀛愬彞鍙互璋冪敤 OPENROWSET(BULK...)鑰岄潪琛ㄥ悕錛屽悓鏃跺彲浠ュ疄鐜板畬鏁寸殑 SELECT 鍔熻兘銆?br /> <br /> 甯︽湁 BULK 閫夐」鐨?OPENROWSET 鍦?FROM 瀛愬彞涓渶瑕佹湁涓涓浉鍏沖悕縐幫紝涔熺О涓鴻寖鍥村彉閲忔垨鍒悕銆傚彲浠ユ寚瀹氬垪鍒悕銆傚鏋滄湭鎸囧畾鍒楀埆鍚嶅垪琛紝鍒欐牸寮忓寲鏂囦歡蹇呴』鍏鋒湁鍒楀悕銆傛寚瀹氬垪鍒悕浼氳鐩栨牸寮忓寲鏂囦歡涓殑鍒楀悕錛屼緥濡傦細<br /> <br /> <code>FROM OPENROWSET(BULK...) AS table_alias</code> <br /> <br /> <code>FROM OPENROWSET(BULK...) AS table_alias(column_alias,...n)</code> <br /> <br /> <li>SELECT...FROM OPENROWSET(BULK...)璇彞灝嗙洿鎺ユ煡璇㈡枃浠朵腑鐨勬暟鎹紝鏃犻渶灝嗘暟鎹鍏ヨ〃涓係ELECT…FROM OPENROWSET(BULK...)璇彞榪樺彲浠ラ氳繃浣跨敤鏍煎紡鍖栨枃浠舵寚瀹氬垪鍚嶅拰鏁版嵁綾誨瀷錛屼粠鑰屽垪鍑哄ぇ瀹歸噺鍒楀埆鍚嶃?br /> <br /> <li>閫氳繃灝?OPENROWSET(BULK...)鐢ㄤ綔 INSERT 鎴?MERGE 璇彞涓殑婧愯〃錛屽皢鏁版嵁鏂囦歡涓殑鏁版嵁澶у閲忓鍏?SQL Server 琛ㄤ腑銆傛湁鍏寵緇嗕俊鎭紝璇峰弬闃?MSHelp:link tabindex="0" keywords="18a64236-0285-46ea-8929-6ee9bcc020b9" filterstring='(("ProductVers"="kbsqlserv100") OR ("DocSet"="NETFramework"))'>浣跨敤 BULK INSERT 鎴?OPENROWSET(BULK...) 瀵煎叆澶у閲忔暟鎹?/MSHelp:link>銆?br /> <br /> <li>OPENROWSET BULK 閫夐」涓?INSERT 璇彞涓璧蜂嬌鐢ㄦ椂錛孊ULK 瀛愬彞鏀寔琛ㄦ彁紺恒侭ULK 瀛愬彞闄や簡鎺ュ彈 TABLOCK 絳夊父瑙勮〃鎻愮ず涔嬪錛岃繕鍙互鎺ュ彈涓嬪垪涓撶敤琛ㄦ彁紺猴細IGNORE_CONSTRAINTS錛堜粎蹇界暐 CHECK 鍜?FOREIGN KEY 綰︽潫錛夈両GNORE_TRIGGERS銆並EEPDEFAULTS 鍜?KEEPIDENTITY銆傛湁鍏寵緇嗕俊鎭紝璇峰弬闃?MSHelp:link tabindex="0" keywords="8bf1316f-c0ef-49d0-90a7-3946bc8e7a89" filterstring='(("ProductVers"="kbsqlserv100") OR ("DocSet"="NETFramework"))'>琛ㄦ彁紺?(Transact-SQL)</MSHelp:link>銆?br /> <br /> </li> </ul> <p xmlns="">鏈夊叧濡備綍浣跨敤 INSERT...SELECT * FROM OPENROWSET(BULK...) 璇彞鐨勪俊鎭紝璇峰弬闃?MSHelp:link tabindex="0" keywords="19049021-c048-44a2-b38d-186d9f9e4a65" filterstring='(("ProductVers"="kbsqlserv100") OR ("DocSet"="NETFramework"))'>瀵煎叆鍜屽鍑哄ぇ瀹歸噺鏁版嵁</MSHelp:link>銆傛湁鍏充綍鏃跺湪浜嬪姟鏃ュ織涓褰曠敱澶у閲忓鍏ユ墽琛岀殑琛屾彃鍏ユ搷浣滅殑淇℃伅錛岃鍙傞槄<MSHelp:link tabindex="0" keywords="bd1dac6b-6ef8-4735-ad4e-67bb42dc4f66" filterstring='(("ProductVers"="kbsqlserv100") OR ("DocSet"="NETFramework"))'>鍦ㄥぇ瀹歸噺瀵煎叆涓寜鏈灝忔柟寮忚褰曟棩蹇楃殑鍓嶆彁鏉′歡</MSHelp:link>銆?/p> <div id="zblh9p9" class="alert" xmlns=""> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr> <th align="left"><img class="note" src="ms-help://MS.SQLCC.v10/MS.SQLSVR.v10.zh-CHS/s10de_6tsql/local/note.gif" alt="" /></img>娉ㄦ剰錛?/th> </tr> <tr> <td>浣跨敤 OPENROWSET 鏃訛紝璇峰姟蹇呬簡瑙?SQL Server 鏄浣曞鐞嗘ā鎷熺殑銆傛湁鍏沖畨鍏ㄦ敞鎰忎簨欏圭殑淇℃伅錛岃鍙傞槄<MSHelp:link style="color: #0000ff" tabindex="0" xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" keywords="18a64236-0285-46ea-8929-6ee9bcc020b9" filterstring='(("ProductVers"="kbsqlserv100") OR ("DocSet"="NETFramework"))'>浣跨敤 BULK INSERT 鎴?OPENROWSET(BULK...) 瀵煎叆澶у閲忔暟鎹?/MSHelp:link>銆?/td> </tr> </tbody> </table> </div> <br /> </div> <br /> <br /> 涓浜涘鎬殑紺轟緥錛?br /> <br /> <span style="color: #0000ff">declare @obj varbinary(max)<br /> set @obj=(select * FROM OPENROWSET (Bulk 'c:\123.jpg', SINGLE_BLOB) as obj )<br /> select @obj<br /> <br /> <br /> Insert Infomation_Info(Title,Content,RecordUserID,Abstract,<br />    Source,SourceWebsite,ApproveID,Disable,Remark,Status,<br />    Thumbnail)<br />   Select @Title,@Content,@RecordUserID,@Abstract,<br />    @Source,@SourceWebsite,@ApproveID,@Disable,@Remark,@Status,<br />    * FROM OPENROWSET (Bulk 'c:\123.jpg', SINGLE_BLOB) AS Thumbnail</span><br /> <br /> <img src ="http://www.tkk7.com/kiant/aggbug/295086.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-09-15 08:49 <a href="http://www.tkk7.com/kiant/articles/295086.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>SQL Server 2005/2008 瀵筗ith Encryption閫夐」鍒涘緩鐨勫瓨鍌ㄨ繃紼嬭В瀵?http://www.tkk7.com/kiant/articles/294622.html榛勫皬浜?/dc:creator>榛勫皬浜?/author>Thu, 10 Sep 2009 09:07:00 GMThttp://www.tkk7.com/kiant/articles/294622.htmlhttp://www.tkk7.com/kiant/comments/294622.htmlhttp://www.tkk7.com/kiant/articles/294622.html#Feedback0http://www.tkk7.com/kiant/comments/commentRss/294622.htmlhttp://www.tkk7.com/kiant/services/trackbacks/294622.html闃呰鍏ㄦ枃

]]>
鏍囬噺瀛愭煡璇?/title><link>http://www.tkk7.com/kiant/articles/286847.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Wed, 15 Jul 2009 04:47:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/286847.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/286847.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/286847.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/286847.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/286847.html</trackback:ping><description><![CDATA[<br /> <fieldset><legend>寮曠敤: 鏍囬噺瀛愭煡璇?/legend> <p>涓涓爣閲忓瓙鏌ヨ鏄竴涓斁鍦ㄥ渾鎷姬閲岀殑鏅?SELECT鏌ヨ錛?瀹冨彧榪斿洖鍙湁涓涓瓧孌電殑涓琛岋紟錛堝弬闃?Chapter 4 鑾峰彇鏈夊叧鍐欐煡璇㈢殑淇℃伅銆傦級 璇?SELECT 灝嗚鎵ц錛?鑰屽叾鍗曚釜榪斿洖鍊煎皢鍦ㄥ懆鍥寸殑鍊艱〃杈懼紡涓嬌鐢紟 鎶婁竴涓繑鍥炶秴榪囦竴琛屾垨鑰呰秴榪囦竴鍒楃殑鏌ヨ鐢ㄥ仛鏍囬噺鏌ヨ鏄敊璇殑錛?(涓嶈繃錛屽湪鐗瑰畾鐨勬墽琛屼腑錛屽瓙鏌ヨ涓嶈繑鍥炶鍒欎笉綆楅敊璇紱鏍囬噺緇撴灉璁や負鏄?NULL錛?璇ュ瓙鏌ヨ鍙互寮曠敤鍛ㄥ洿鏌ヨ鐨勫彉閲忥紝 閭d簺鍙橀噺涔熸槸鍦ㄨ綆椾換鎰忓瓙鏌ヨ鐨勬椂鍊欏綋鍋氬父閲忎嬌鐢ㄧ殑錛?鍙堣 Section 6.15錛?</p> <p>姣斿錛屼笅闈㈢殑鏌ヨ鎵懼嚭姣忎釜宸炰腑鐨勬渶澶т漢鍙f暟閲忕殑鍩庡競鈭?</p> <p>SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name)<br /> FROM states;</p> </fieldset><br /> <br /> <a target="_blank">瀛愭煡璇綔涓烘爣閲忔搷浣滄暟--MySql鏁版嵁搴?/a><br /> ps: 榪欑鏂規硶鐨勫彧鑳芥煡璇㈠崟涓鍊?br /> <br /> <a target="_blank">銆奜racle 楂樻晥璁捐銆?璇諱功鎬濊?-鏍囬噺瀛愭煡璇㈡煡璇㈡ц兘璁ㄨ </a><br /> 鑳芥彁渚涗笉灝戞濊礬<br /> <br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #0000ff">select</span><span style="color: #000000">     n.ex_name,     c.customer_name,     n.remark,          e.employee_name </span><span style="color: #0000ff">as</span><span style="color: #000000"> create_name,     n.create_user,         n.project_id,   n.id </span><span style="color: #0000ff">as</span><span style="color: #000000"> node_id,         n.model_id,     n.</span><span style="color: #ff00ff">file_id</span><span style="color: #000000">,             g.grade_name </span><span style="color: #0000ff">as</span><span style="color: #000000"> level_name,     t.type </span><span style="color: #0000ff">as</span><span style="color: #000000"> type_name,     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />         exe.exe_ids,  exe.exe_names,    dept.dept_ids,         dept.dept_names,      <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #ff00ff">Convert</span><span style="color: #000000">(DATE_FORMAT(pn.node_end_time, </span><span style="color: #ff0000">'</span><span style="color: #ff0000">%Y騫?c鏈?e鏃?/span><span style="color: #ff0000">'</span><span style="color: #000000">) USING utf8) </span><span style="color: #0000ff">as</span><span style="color: #000000"> end_time     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">from</span><span style="color: #000000">     hrp_project_execution n <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_cycle_grade g </span><span style="color: #0000ff">on</span><span style="color: #000000"> g.id </span><span style="color: #808080">=</span><span style="color: #000000"> n.worklevel     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_work_type t </span><span style="color: #0000ff">on</span><span style="color: #000000"> t.id </span><span style="color: #808080">=</span><span style="color: #000000"> n.worktype     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_customer c </span><span style="color: #0000ff">on</span><span style="color: #000000"> c.id </span><span style="color: #808080">=</span><span style="color: #000000"> n.customer_id     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_company_employee_info e </span><span style="color: #0000ff">on</span><span style="color: #000000"> e.id </span><span style="color: #808080">=</span><span style="color: #000000"> n.create_user     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_project_node pn </span><span style="color: #0000ff">on</span><span style="color: #000000"> pn.id </span><span style="color: #808080">=</span><span style="color: #000000"> n.node_id<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> (</span><span style="color: #0000ff">select</span><span style="color: #000000"> ne.execution_id, </span><span style="color: #ff00ff">Convert</span><span style="color: #000000">(GROUP_CONCAT(ne.executor_id) USING utf8) </span><span style="color: #0000ff">as</span><span style="color: #000000"> exe_ids,      GROUP_CONCAT(e.employee_name) </span><span style="color: #0000ff">as</span><span style="color: #000000"> exe_names  <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">from</span><span style="color: #000000">  hrp_project_execution_executor ne     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">inner</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_company_employee_info e </span><span style="color: #0000ff">on</span><span style="color: #000000"> e.id </span><span style="color: #808080">=</span><span style="color: #000000"> ne.executor_id     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">where</span><span style="color: #000000"> ne.delete_flag </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">       </span><span style="color: #808080">and</span><span style="color: #000000">    ne.execution_id </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000">  </span><span style="color: #0000ff">group</span><span style="color: #000000"> </span><span style="color: #0000ff">by</span><span style="color: #000000"> ne.execution_id <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       ) exe </span><span style="color: #0000ff">on</span><span style="color: #000000"> exe.execution_id </span><span style="color: #808080">=</span><span style="color: #000000"> n.id<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> (</span><span style="color: #0000ff">select</span><span style="color: #000000"> de.exectuion_id, </span><span style="color: #ff00ff">Convert</span><span style="color: #000000">(GROUP_CONCAT(de.deptor_id) USING utf8) </span><span style="color: #0000ff">as</span><span style="color: #000000"> dept_ids,          GROUP_CONCAT(e.employee_name) </span><span style="color: #0000ff">as</span><span style="color: #000000"> dept_names  <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">from</span><span style="color: #000000">  hrp_project_execution_deptor de     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">inner</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_company_employee_info e </span><span style="color: #0000ff">on</span><span style="color: #000000"> e.id </span><span style="color: #808080">=</span><span style="color: #000000"> de.deptor_id     <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       </span><span style="color: #0000ff">where</span><span style="color: #000000"> de.delete_flag </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">       </span><span style="color: #808080">and</span><span style="color: #000000">    de.exectuion_id </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">46</span><span style="color: #000000">  </span><span style="color: #0000ff">group</span><span style="color: #000000"> </span><span style="color: #0000ff">by</span><span style="color: #000000"> de.exectuion_id<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />       ) dept </span><span style="color: #0000ff">on</span><span style="color: #000000"> dept.exectuion_id </span><span style="color: #808080">=</span><span style="color: #000000"> n.id<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #0000ff">where</span><span style="color: #000000">    n.id </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">46</span></div> <span style="font-size: 8pt"><em>ps. 鑷繁鍐欑殑閮ㄥ垎, 涓滆タ闀跺祵鍦?left join 閮ㄥ垎</em></span> <img src ="http://www.tkk7.com/kiant/aggbug/286847.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-07-15 12:47 <a href="http://www.tkk7.com/kiant/articles/286847.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓叧浜?鑱斿悎鏌ヨunion 鍜屾帓搴弌rder by 鐨勪緥瀛?/title><link>http://www.tkk7.com/kiant/articles/284131.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Thu, 25 Jun 2009 08:27:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/284131.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/284131.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/284131.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/284131.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/284131.html</trackback:ping><description><![CDATA[鍏跺疄榪樻湁鏇寸畝鍗曠殑鏂規硶 <fieldset><legend>Title</legend> <p>榪樺彲浠ユ妸涓埆鐨剆elect鍛戒護鐢ㄥ渾鎷彿錛岃繖鏍鳳紝鍙互瀵規瘡嬈℃煡璇互鍙婃渶緇堢粨鏋滃仛鍑簂imit鍜宱rder by 璁劇疆銆?/p> <p>(select * from tbl1 order by colA limit 10) union (select * from tbl2 order by colA limit 10) order by </p> <p>coltimestamp limit 5</p> </fieldset><br /> <br /> <br /> <br /> <br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #808080">//</span><span style="color: #000000">鏌ヨ鏈夋晥鏈熷唴鐨勮鍒掍換鍔¤妭鐐?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        string sql </span><span style="color: #808080">=</span><span style="color: #000000"> "</span><span style="color: #0000ff">select</span><span style="color: #000000">     g.grade_name,   "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> degree_name,"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> reason, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">'</span><span style="color: #ff0000">project_node</span><span style="color: #ff0000">'</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> node_type, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> fact_node_name, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " p.create_time, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    p.id,    p.project_id,     p.node_name,        p.deptids,"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    p.node_begin_time,         p.node_end_time,    p.worklevel"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #0000ff">from</span><span style="color: #000000">     hrp_project_node p "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_cycle_grade g </span><span style="color: #0000ff">on</span><span style="color: #000000"> g.id </span><span style="color: #808080">=</span><span style="color: #000000"> p.worklevel "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #0000ff">where</span><span style="color: #000000"> p.state </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">  </span><span style="color: #808080">and</span><span style="color: #000000">  p.node_state </span><span style="color: #808080"><></span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">3</span><span style="color: #000000"> "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #808080">and</span><span style="color: #000000"> UNIX_TIMESTAMP(p.node_begin_time) </span><span style="color: #808080"><</span><span style="color: #000000"> UNIX_TIMESTAMP(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">" + DateTime.Now.ToString() + "</span><span style="color: #ff0000">'</span><span style="color: #000000">) "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">//</span><span style="color: #000000">浼樺厛鏌ュ嚭鎵鏈?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">//+</span><span style="color: #000000"> " </span><span style="color: #808080">and</span><span style="color: #000000"> UNIX_TIMESTAMP(p.node_end_time) </span><span style="color: #808080">></span><span style="color: #000000"> UNIX_TIMESTAMP(</span><span style="color: #ff0000">'</span><span style="color: #ff0000">" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "</span><span style="color: #ff0000">'</span><span style="color: #000000">) "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #808080">and</span><span style="color: #000000"> (p.exeids </span><span style="color: #808080">like</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">" + userId + "%</span><span style="color: #ff0000">'</span><span style="color: #000000"> </span><span style="color: #808080">or</span><span style="color: #000000"> p.exeids </span><span style="color: #808080">like</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">%," + userId + "%</span><span style="color: #ff0000">'</span><span style="color: #000000">) ";<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        </span><span style="color: #808080">//</span><span style="color: #000000">鍚堝茍榪樻湭鎵ц鐨勪換鍔¤妭鐐?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        sql </span><span style="color: #808080">+=</span><span style="color: #000000"> " </span><span style="color: #0000ff">union</span><span style="color: #000000"> </span><span style="color: #808080">all</span><span style="color: #000000"> "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #0000ff">select</span><span style="color: #000000">     g.grade_name,   "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> degree_name,"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> reason, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">'</span><span style="color: #ff0000">fact_node</span><span style="color: #ff0000">'</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> node_type, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #ff0000">''</span><span style="color: #000000"> </span><span style="color: #0000ff">as</span><span style="color: #000000"> fact_node_name, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " f.create_time, "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    f.id,    f.project_id,     f.node_name,        f.deptids,"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    f.fact_begin_time,         f.fact_end_time,    f.worklevel"<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #0000ff">from</span><span style="color: #000000">     hrp_fact_node_execute f "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #ff00ff">left</span><span style="color: #000000"> </span><span style="color: #0000ff">join</span><span style="color: #000000"> hrp_cycle_grade g </span><span style="color: #0000ff">on</span><span style="color: #000000"> g.id </span><span style="color: #808080">=</span><span style="color: #000000"> f.worklevel "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> "    </span><span style="color: #0000ff">where</span><span style="color: #000000"> f.state </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">  </span><span style="color: #808080">and</span><span style="color: #000000">  f.fact_state_id </span><span style="color: #808080">=</span><span style="color: #000000"> </span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000"> "<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />            </span><span style="color: #808080">+</span><span style="color: #000000"> " </span><span style="color: #808080">and</span><span style="color: #000000"> (f.exeids </span><span style="color: #808080">like</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">" + userId + "%</span><span style="color: #ff0000">'</span><span style="color: #000000"> </span><span style="color: #808080">or</span><span style="color: #000000"> f.exeids </span><span style="color: #808080">like</span><span style="color: #000000"> </span><span style="color: #ff0000">'</span><span style="color: #ff0000">%," + userId + "%</span><span style="color: #ff0000">'</span><span style="color: #000000">) ";<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        sql </span><span style="color: #808080">=</span><span style="color: #000000"> string.Format("</span><span style="color: #0000ff">select</span><span style="color: #000000"> </span><span style="color: #808080">*</span><span style="color: #000000"> </span><span style="color: #0000ff">from</span><span style="color: #000000"> ({</span><span style="font-weight: bold; color: #800000">0</span><span style="color: #000000">}) </span><span style="color: #0000ff">as</span><span style="color: #000000"> t1  </span><span style="color: #0000ff">order</span><span style="color: #000000"> </span><span style="color: #0000ff">by</span><span style="color: #000000"> create_time </span><span style="color: #0000ff">desc</span><span style="color: #000000">", sql);</span></div> <br /> <br /> ps: 鎴戣寰楄繖鏍風殑涓綃囧笘瀛愬ソ鍍忓彂琛ㄨ繃, 濂囨負浠涔堜笉鎵句笉鍒頒簡??<br /> 褰撴椂榪樺弬鑰冧簡鍒漢鐨勫崥瀹? <br /> 榪風硦ing.... 鍞? 琚?google.com鎼炲緱蹇冪涓嶅畞鍟妦~~~ <img src ="http://www.tkk7.com/kiant/aggbug/284131.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2009-06-25 16:27 <a href="http://www.tkk7.com/kiant/articles/284131.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Oracle 10g 涓?SQL Server 2005 鐨勬暟鎹被鍨?/title><link>http://www.tkk7.com/kiant/articles/233923.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Sun, 12 Oct 2008 16:29:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/233923.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/233923.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/233923.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/233923.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/233923.html</trackback:ping><description><![CDATA[<br /> <br /> <a target="_blank" >Oracle 10g 鏁版嵁綾誨瀷</a><br /> <a target="_blank" >SQL Server 2005 鐨勬暟鎹被鍨?/a><br /> <br /> <br /> 闄勫綍錛?br /> <strong> 1銆佸叧浜?NUMBER(p,s)</strong> 錛岃兘琛ㄧず鐨勬湁鏁堝間負 1.0 x 10<sup>-130</sup> to (but not including) 1.0 x 10<sup>126</sup>銆?br />     p錛氱簿搴﹀鹼紝鎸囨湁鏁堜綅鏁幫紝浠庡乏杈圭涓涓笉涓?鐨勬暟綆楄搗錛屽皬鏁扮偣鍜岃礋鍙蜂笉璁″叆鏈夋晥浣嶆暟銆傚彇鍊艱寖鍥翠負 0 锝?38 銆?br />     s錛氭爣搴﹀鹼紝灝忔暟鐐瑰彸杈規渶灝忔湁鏁堟暟瀛椾綅鏁般傚彇鍊艱寖鍥翠負 -84 锝?127 銆?br />       鈼?s>0錛氱簿紜埌灝忔暟鐐瑰彸杈?s 浣嶏紝騫跺洓鑸嶄簲鍏ャ?br />       鈼?s<0錛氱簿紜埌灝忔暟鐐瑰乏杈?s 浣嶏紝騫跺洓鑸嶄簲鍏ャ?br /> 渚嬪錛?br />     NUMBER(5,3)鍙互瀛樺偍鐨勬暟瀛楀艦寮忎負錛歱p.sss銆?br /> <br /> ps.<br />     Scale can be greater than precision, most commonly when e notation is used. When scale is greater than precision, the precision specifies the maximum number of significant digits to the right of the decimal point. For example, a column defined as NUMBER(4,5) requires a zero for the first digit after the decimal point and rounds all values past the fifth digit after the decimal point.<br />     褰?s > p 鏃訛紝渚嬪 NUMBER(4,5) 錛屽繀欏繪暟鍊間負 0.0xxxx 鐨勬暟瀛楋紙灝忔暟鐐瑰悗 s-p 浣嶅姞0錛夈?br /> <br /> 紺轟緥錛?br /> <table border="0" cellpadding="2" cellspacing="2" height="168" width="713"> <tbody> <tr> <td> 瀹氫箟鏍煎紡</td> <td> 杈撳叆鏁板?/td> <td> 瀛樺偍鐘舵?/td> </tr> <tr> <td> NUMBER</td> <td> 123.89</td> <td> 123.89</td> </tr> <tr> <td> NUMBER(5)</td> <td> 123.89</td> <td> 124</td> </tr> <tr> <td> NUMBER(5,0)</td> <td> 123456</td> <td> ORA-01438: 鍊煎ぇ浜庝負姝ゅ垪鎸囧畾鐨勫厑璁哥簿搴?/td> </tr> <tr align="left" valign="middle"> <td> </td> <td> </td> <td> </td> </tr> <tr align="left" valign="middle"> <td> NUMBER(6,2)</td> <td> 123.89</td> <td> 123.89</td> </tr> <tr align="left" valign="middle"> <td> </td> <td> 123.8951</td> <td> 123.9</td> </tr> <tr align="left" valign="middle"> <td> </td> <td> </td> <td> </td> </tr> <tr align="left" valign="middle"> <td> NUMBER(2,5)</td> <td> 0.000811</td> <td> 0.00081</td> </tr> <tr> <td valign="top"><br /> </td> <td valign="top">123.89</td> <td valign="top">ORA-01438: 鍊煎ぇ浜庝負姝ゅ垪鎸囧畾鐨勫厑璁哥簿搴?/td> </tr> <tr> <td valign="top"><br /> </td> <td valign="top">1.2e-4</td> <td valign="top">0.00012</td> </tr> </tbody> </table> <br /> <img src ="http://www.tkk7.com/kiant/aggbug/233923.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2008-10-13 00:29 <a href="http://www.tkk7.com/kiant/articles/233923.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JDBC 鐩磋繛 SQL2005 鐨勪竴鐐瑰績寰?/title><link>http://www.tkk7.com/kiant/articles/214637.html</link><dc:creator>榛勫皬浜?/dc:creator><author>榛勫皬浜?/author><pubDate>Sun, 13 Jul 2008 15:39:00 GMT</pubDate><guid>http://www.tkk7.com/kiant/articles/214637.html</guid><wfw:comment>http://www.tkk7.com/kiant/comments/214637.html</wfw:comment><comments>http://www.tkk7.com/kiant/articles/214637.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/kiant/comments/commentRss/214637.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/kiant/services/trackbacks/214637.html</trackback:ping><description><![CDATA[<br /> 涓銆侀厤緗?SQL Server 2005 浠ュ厑璁歌繙紼嬭繛鎺?nbsp;   (閫氳繃浣跨敤瀹炰緥鍚嶇О鏉ヨ繍琛?SQL Server 2005 )<br /> <a target="_blank">http://support.microsoft.com/kb/914277/zh-cn</a> <br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img id="Code_Closed_Image_010749" onclick="this.style.display='none'; Code_Closed_Text_010749.style.display='none'; Code_Open_Image_010749.style.display='inline'; Code_Open_Text_010749.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" height="16" width="11" /><img id="Code_Open_Image_010749" style="display: none;" onclick="this.style.display='none'; Code_Open_Text_010749.style.display='none'; Code_Closed_Image_010749.style.display='inline'; Code_Closed_Text_010749.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" height="16" width="11" /><span id="Code_Closed_Text_010749" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255);">鎽樿&鎬葷粨</span><span id="Code_Open_Text_010749" style="display: none;"><br /> <!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">鍦ㄥ皾璇曚粠榪滅▼璁$畻鏈鴻繛鎺ュ埌 Microsoft SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 瀹炰緥鏃訛紝鍙兘浼氭帴鏀跺埌閿欒娑堟伅銆傚湪浣跨敤浠諱綍紼嬪簭榪炴帴鍒?nbsp;SQL Server 鏃墮兘鍙兘浼氬彂鐢熸闂銆備緥濡傦紝鍦ㄤ嬌鐢?nbsp;SQLCMD 瀹炵敤宸ュ叿榪炴帴鍒?nbsp;SQL Server 鏃舵敹鍒頒互涓嬮敊璇秷鎭細<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Sqlcmd:閿欒:Microsoft SQL Native Client:寤虹珛鍒版湇鍔″櫒鐨勮繛鎺ユ椂鍙戠敓閿欒銆傝繛鎺ュ埌 SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 鏃訛紝榛樿璁劇疆 SQL Server 涓嶅厑璁歌繙紼嬭繛鎺ヨ繖涓簨瀹炲彲鑳戒細瀵艱嚧澶辮觸銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />濡傛灉娌℃湁灝?nbsp;SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 閰嶇疆涓烘帴鍙楄繙紼嬭繛鎺ワ紝鍒欏彲鑳戒細鍙戠敓姝ら棶棰樸傞粯璁ゆ儏鍐典笅錛孲QL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> Express Edition 鍜?nbsp;SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> Developer Edition 涓嶅厑璁歌繙紼嬭繛鎺ャ傝嫢瑕侀厤緗?nbsp;SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 浠ュ厑璁歌繙紼嬭繛鎺ワ紝璇峰畬鎴愪互涓嬫墍鏈夋楠わ細<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     • 鍦ㄦ偍瑕佷粠榪滅▼璁$畻鏈鴻繛鎺ュ埌鐨?nbsp;SQL Server 瀹炰緥涓婂惎鐢ㄨ繙紼嬭繛鎺ャ?nbsp; <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />• 鎵撳紑 SQL Server Browser 鏈嶅姟銆?nbsp;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />• 閰嶇疆闃茬伀澧欎互鍏佽涓?nbsp;SQL Server 鍜?nbsp;SQL Server Browser 鏈嶅姟鐩稿叧鐨勭綉緇滈氳銆?nbsp;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鍚敤 SQL Server Browser 鏈嶅姟<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><strong>濡傛灉鎮ㄦ槸閫氳繃浣跨敤瀹炰緥鍚嶇О鏉ヨ繍琛?nbsp;SQL Server </strong></span><strong><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 騫朵笖鍦ㄨ繛鎺ュ瓧絎︿覆涓病鏈変嬌鐢ㄧ壒瀹氱殑 TCP</span><span style="color: rgb(0, 0, 0);">/</span></strong><span style="color: rgb(0, 0, 0);"><strong>IP 绔彛鍙鳳紝鍒欏繀欏誨惎鐢?nbsp;SQL Server Browser 鏈嶅姟浠ュ厑璁歌繙紼嬭繛鎺ャ?br /> </strong><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    渚嬪錛屼嬌鐢?strong> </strong></span><strong><span style="color: rgb(0, 0, 0);"><</span><span style="color: rgb(0, 0, 0);">璁$畻鏈哄悕</span><span style="color: rgb(0, 0, 0);">></span></strong><span style="color: rgb(0, 0, 0);"><strong>\SQLEXPRESS 鐨勯粯璁ゅ疄渚嬪悕縐?/strong>瀹夎鐨?nbsp;SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> Express銆備笉綆℃偍姝e湪榪愯澶氬皯涓?nbsp;SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 瀹炰緥錛屽彧闇瑕佸惎鐢ㄤ竴嬈?nbsp;SQL Server Browser 鏈嶅姟銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />(浠ヤ笅鏄釜浜虹殑鏈嶅姟鍣ㄤ笂鐨勯厤緗紝鎵撳紑浜?nbsp;TCP</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">IP 鍜?nbsp;瀹炰緥鍚?<br /> <img alt="鍚屾椂浣跨敤 TCP/IP 鍜?Named Pipes (鍛藉悕瀹炰緥?)鍗忚" src="http://www.tkk7.com/images/blogjava_net/kiant/2008.07.13/001.jpg" border="0" height="508" width="670" /></span></span></div> <br /> <br /> <br /> <br /> 浜屻侀氳繃 TCP 绔彛鐩存帴鍒?SQL Server 瀹炰緥 (绔彛榛樿鍊兼槸 1433)<br /> 涓篠QL Server浣跨敤闈炴爣鍑嗙殑绔彛    <a href=" http://www.windbi.com/showtopic-293.aspx" target="_blank">http://www.windbi.com/showtopic-293.aspx</a><br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img id="Code_Closed_Image_010657" onclick="this.style.display='none'; Code_Closed_Text_010657.style.display='none'; Code_Open_Image_010657.style.display='inline'; Code_Open_Text_010657.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" height="16" width="11" /><img id="Code_Open_Image_010657" style="display: none;" onclick="this.style.display='none'; Code_Open_Text_010657.style.display='none'; Code_Closed_Image_010657.style.display='inline'; Code_Closed_Text_010657.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" height="16" width="11" /><span id="Code_Closed_Text_010657" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255);">鎽樿&鎬葷粨</span><span id="Code_Open_Text_010657" style="display: none;"><br /> <!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><strong><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">銆佷負紺句箞瑕佷嬌鐢?nbsp;TCP</span><span style="color: rgb(0, 0, 0);">/</span></strong><span style="color: rgb(0, 0, 0);"><strong>IP 榪炴帴</strong><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    鍦ㄧ▼搴忛厤緗枃浠墮噷錛孌ata Source</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">錛堟湇鍔″櫒鐨処P鍦板潃錛夋瘮 Data Source</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">(local) 鏇存湁鍒╀簬縐繪銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    </span><strong><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">銆佹湇鍔″櫒绔叧浜庢爣鍑嗙鍙?</span><span style="color: rgb(0, 0, 0);">1433</span></strong><span style="color: rgb(0, 0, 0);"><strong>)鐨勬洿鏀?/strong><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    褰撲綘瀹夎SQL Server鏃訛紝榛樿瀹炰緥鏄洃鍚?433绔彛鍙風殑銆傚畨鍏ㄦ柟闈㈠鏄撳彈鍒版敾鍑匯?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />    褰撳畨瑁呬竴涓懡鍚嶅疄渚嬪悗錛屽湪瀹冨惎鍔ㄧ殑鏃跺欓粯璁や嬌鐢ㄧ殑鏄姩鎬佸喅瀹氱殑绔彛鍙楓傚洜姝わ紝鍛藉悕瀹炰緥姣忔鍚姩鏃訛紝閮芥湁鍙兘鐩戝惉涓嶅悓鐨勭鍙e彿銆傚浜庨氳繃闃茬伀澧欒闂柟寮忛犳垚鏋佸ぇ闂銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  鍥犳錛?strong>涓轟簡闄愬埗瀵逛綘鐨凷QL Server鐨勮闂紝浣犻渶瑕侀厤緗甋QL Server鍘葷洃鍚竴涓壒瀹氱殑绔彛</strong>銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />(鎬庢牱閰嶇疆SQL Server鍘葷洃鍚壒瀹氱殑绔彛錛岀ず渚嬩腑浣跨敤鐨勬槸 </span><span style="color: rgb(0, 0, 0);">1433</span><span style="color: rgb(0, 0, 0);">錛屼綘鍙互鑷敱閫夋嫨)<br /> <img alt="" src="http://www.tkk7.com/images/blogjava_net/kiant/2008.07.13/002A.jpg" border="0" height="608" width="726" /><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <br /> <br /> 3<strong>銆佷嬌鐢ㄧ壒瀹氱鍙h緗椂鐨勫鎴風榪炴帴</strong><br /> 瀹㈡埛绔湁3縐嶆柟娉曡繛鎺ュ埌涓涓嬌鐢ㄧ壒瀹氶潪鏍囧噯绔彛鍙風殑瀹炰緥銆?br /> <br /> 絎竴縐嶆柟娉曟槸榪愯SQL Server Browser鏈嶅姟銆?br /> 絎簩涓柟娉曟槸鍦ㄥ鎴風鏈哄櫒涓婂垱寤轟竴涓猄QL Server鐨勫埆鍚嶃?br /> 鏈鍚庝竴涓柟娉曟槸鍦ㄨ繛鎺ュ瓧絎︿覆閲岄氳繃緙栫▼鏉ユ寚瀹氱鍙e彿銆侱ata Source=SERVER2,8484;Initial Catalog=AdventureWorks<br /> <br /> (瀹㈡埛绔崗璁?<br /> <img alt="瀹㈡埛绔崗璁? src="http://www.tkk7.com/images/blogjava_net/kiant/2008.07.13/003.jpg" border="0" height="608" width="727" /><br /> <br /> <br /> <br /> 緇撹<br /> 姝e浣犳墍鐪嬪埌鐨勶紝鍦ㄧ敤涓涓壒瀹氱殑绔彛鍙鋒潵璁劇疆浣犵殑SQL Server瀹炰緥鏃舵病鏈夊お澶氱殑宸ヤ綔瑕佸仛銆傛渶澶х殑闂灝辨槸紜繚榪炴帴瀛楃涓茬殑緙栫爜瑕佹紜傚綋璁劇疆绔彛鍙風殑鏃跺欙紝瑕佺‘淇濊绔彛鍙鋒病鏈夎浣跨敤銆?strong>涓轟簡紜繚浣犵殑鐜鏇村姞瀹夊叏錛屾垜寤鴻浣犲叧闂璖QL Server Browser鏈嶅姟銆傝繖鏍鋒墍鏈夌殑瀹㈡埛绔湪榪炴帴SQL Server鐨勬椂鍊欓兘瑕佹眰鎸囧畾绔彛鍙楓?br /> </strong></span></span></div> <br /> <br /> <br /> <br /> 涓夈佺▼搴忎腑浣跨敤绔彛榪炴帴鏁版嵁搴?br /> 鍦ㄨ繛鎺ュ埌 SQL Server 鏁版嵁搴撲箣鍓嶏紝蹇呴』棣栧厛鍦ㄦ湰鍦拌綆楁満鎴栨湇鍔″櫒涓婂畨瑁?SQL Server錛屽茍涓斿繀欏誨湪鏈湴璁$畻鏈轟笂瀹夎 JDBC 椹卞姩紼嬪簭銆?br /> <a target="_blank">Microsoft SQL Server 2005 JDBC Driver 1.2 涓嬭澆</a><br /> 浣跨敤 JDBC 椹卞姩紼嬪簭        <a target="_blank">http://msdn.microsoft.com/zh-cn/library/ms378526.aspx</a><br /> 鍒涘緩榪炴帴 URL                    <a target="_blank">http://msdn.microsoft.com/zh-cn/library/ms378428.aspx</a><br /> myeclicse鎬庝箞涓巗ql server 2005榪炴帴        <a target="_blank">http://zhidao.baidu.com/question/55043158.html?fr=qrl&test=query</a> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img id="Code_Closed_Image_063305" onclick="this.style.display='none'; Code_Closed_Text_063305.style.display='none'; Code_Open_Image_063305.style.display='inline'; Code_Open_Text_063305.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" height="16" width="11" /><img id="Code_Open_Image_063305" style="display: none;" onclick="this.style.display='none'; Code_Open_Text_063305.style.display='none'; Code_Closed_Image_063305.style.display='inline'; Code_Closed_Text_063305.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" height="16" width="11" /><span id="Code_Closed_Text_063305" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255);">鎽樿&鎬葷粨</span><span id="Code_Open_Text_063305" style="display: none;"><br /> <!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);"><strong>MyEclipse Database Explor 閰嶇疆</strong>    <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Driver Template 錛氬湪涓嬫媺妗嗕腑閫夋嫨鏁版嵁搴撻┍鍔ㄦā鏉褲傝繖閲岃繖閲岄夋嫨 Microsoft SQL Server </span><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Driver JARS : 娣誨姞sql jdbc 銆傜偣鍑?nbsp;Add JARs 銆侸DBC鍖呯殑sqljdbc.jar鏂囦歡銆?br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Connection URL:  jdbc:sqlserver:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">10.0.0.99:1433;databaseName=AdventureWorks </span><span style="color: rgb(0, 128, 0);"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 0);">                            鎴?nbsp;jdbc:sqlserver:</span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">A9DFC026515C47B\MYSQL;databaseName=AdventureWorks  (宸插惎鍔⊿QL Server Browser鏈嶅姟)</span><span style="color: rgb(0, 128, 0);"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 0);">User name 鍜?nbsp;Password涓虹櫥闄嗗悕瀛楀拰瀵嗙爜錛?nbsp;濂藉儚蹇呴』濉紝</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">window 韜喚楠岃瘉</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">鏃犳晥<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><strong>VS </strong></span><strong><span style="color: rgb(0, 0, 0);">2005</span><span style="color: rgb(0, 0, 0);"> 鍜?nbsp;SQL </span><span style="color: rgb(0, 0, 0);">2005</span></strong><span style="color: rgb(0, 0, 0);"><strong> 涓殑閰嶇疆</strong><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鍑犱箮鍜孧yEclipse Database Explor涓鏍鳳紝鍙笉榪囨槸 绔彛鍙峰墠闈㈢殑 </span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">:</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);"> 鍙樻垚浜?nbsp;</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">'</span><span style="color: rgb(0, 0, 0);"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鏈嶅姟鍣ㄥ悕縐幫細   </span><strong><span style="color: rgb(0, 0, 0);">10.0</span><span style="color: rgb(0, 0, 0);">.</span><span style="color: rgb(0, 0, 0);">0.99</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">1433</span></strong><span style="color: rgb(0, 0, 0);"><strong> </strong><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><strong>涓庢暟鎹簱寤虹珛綆鍗曡繛鎺?/strong><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鑻ヨ浣跨敤 DriverManager 綾昏繛鎺ュ埌鏁版嵁搴擄紝蹇呴』棣栧厛鎸夊涓嬫柟寮忔敞鍐岄┍鍔ㄧ▼搴忥細<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Class.forName(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">com.microsoft.sqlserver.jdbc.SQLServerDriver</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">); <br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />鍔犺澆椹卞姩紼嬪簭鍚庯紝鍙氳繃浣跨敤榪炴帴 URL 鏉ュ緩绔嬭繛鎺ワ細<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />String connectionUrl </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">jdbc:sqlserver://localhost:1433;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">   </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">databaseName=AdventureWorks;user=MyUserName;password=*****;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />Connection con </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> DriverManager.getConnection(connectionUrl);<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span></span></div> <br /> <br /> <br /> <br /> 鍥涖丼QL 2005 鏇存敼sa瀵嗙爜<br /> <a target="_blank">http://topic.csdn.net/u/20071130/13/54df9ff6-ad1d-45a3-9d9b-da6a33714227.html</a><br /> 鏃墮棿鍖嗗繖錛屾病涓涓楠岃瘉榪囥?br /> <div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: rgb(238, 238, 238);"><img id="Code_Closed_Image_010436" onclick="this.style.display='none'; Code_Closed_Text_010436.style.display='none'; Code_Open_Image_010436.style.display='inline'; Code_Open_Text_010436.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" height="16" width="11" /><img id="Code_Open_Image_010436" style="display: none;" onclick="this.style.display='none'; Code_Open_Text_010436.style.display='none'; Code_Closed_Image_010436.style.display='inline'; Code_Closed_Text_010436.style.display='inline';" alt="" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" height="16" width="11" /><span id="Code_Closed_Text_010436" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255);">鎽樿</span><span id="Code_Open_Text_010436" style="display: none;"><br /> <!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">浼佷笟綆$悊閲屸斿畨鍏ㄦр旇處鍙封斿彸鍋ュ睘鎬?鏈濂藉彇娑堝瘑鐮佺瓥鐣ヨ繖欏?<br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" />sp_password </span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">OldPassword</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">NewPassword</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 0, 0);"><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><br /> <img alt="" src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" /></span><span style="color: rgb(0, 0, 255);">alter</span><span style="color: rgb(0, 0, 0);"> login </span><span style="color: rgb(255, 0, 0);">[</span><span style="color: rgb(255, 0, 0);">sa</span><span style="color: rgb(255, 0, 0);">]</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">with</span><span style="color: rgb(0, 0, 0);"> password</span><span style="color: rgb(128, 128, 128);">=</span><span style="color: rgb(0, 0, 0);">N</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(255, 0, 0);">NewPassword</span><span style="color: rgb(255, 0, 0);">'</span><span style="color: rgb(0, 128, 128);">--</span><span style="color: rgb(0, 128, 128);">鏃у瘑鐮佸彲浠ヤ笉鐢ㄦ彁渚?/span></span></div> <br /> <img src ="http://www.tkk7.com/kiant/aggbug/214637.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/kiant/" target="_blank">榛勫皬浜?/a> 2008-07-13 23:39 <a href="http://www.tkk7.com/kiant/articles/214637.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://shunfk.com" target="_blank">日本免费精品一区二区三区</a>| <a href="http://szgreater.com" target="_blank">亚洲三级在线免费观看</a>| <a href="http://blcvs.com" target="_blank">青青草97国产精品免费观看</a>| <a href="http://wwkk3.com" target="_blank">免费无遮挡无码视频网站</a>| <a href="http://pc521.com" target="_blank">亚洲熟妇无码AV</a>| <a href="http://2023852.com" target="_blank">女人18毛片a级毛片免费视频</a>| <a href="http://lzqzvip.com" target="_blank">一区二区亚洲精品精华液</a>| <a href="http://6123fa.com" target="_blank">在线观看人成视频免费</a>| <a href="http://fshomppa.com" target="_blank">亚洲人成网亚洲欧洲无码</a>| <a href="http://by1687.com" target="_blank">国产高清免费观看</a>| <a href="http://tsxyhq.com" target="_blank">青青青视频免费观看</a>| <a href="http://1212777.com" target="_blank">成人午夜亚洲精品无码网站</a>| <a href="http://0101av.com" target="_blank">国内精品一级毛片免费看</a>| <a href="http://bcz123.com" target="_blank">亚洲精品自产拍在线观看动漫</a>| <a href="http://520baoyu.com" target="_blank">99久9在线|免费</a>| <a href="http://zblinghang.com" target="_blank">亚洲人成7777影视在线观看</a>| <a href="http://fuhui123.com" target="_blank">成年女人免费视频播放77777</a>| <a href="http://yy6653.com" target="_blank">亚洲av永久中文无码精品</a>| <a href="http://8x6c.com" target="_blank">亚洲精品456播放</a>| <a href="http://wwwby1385.com" target="_blank">男女一边摸一边做爽的免费视频</a>| <a href="http://wenfaka.com" target="_blank">亚洲精品乱码久久久久久蜜桃不卡 </a>| <a href="http://yuanzhouxh.com" target="_blank">亚洲日韩欧洲无码av夜夜摸</a>| <a href="http://czhos.com" target="_blank">在线观看免费无码视频</a>| <a href="http://gttest5.com" target="_blank">亚洲福利视频导航</a>| <a href="http://zxzzzzx.com" target="_blank">成人片黄网站A毛片免费</a>| <a href="http://jst-hosp.com" target="_blank">国产亚洲精品精品精品</a>| <a href="http://52xbjs.com" target="_blank">亚洲啪啪AV无码片</a>| <a href="http://wanguoshan.com" target="_blank">足恋玩丝袜脚视频免费网站</a>| <a href="http://bjgelinhotel.com" target="_blank">亚洲依依成人精品</a>| <a href="http://626632.com" target="_blank">成人伊人亚洲人综合网站222</a>| <a href="http://zz1965.com" target="_blank">天黑黑影院在线观看视频高清免费</a>| <a href="http://942woool.com" target="_blank">91亚洲导航深夜福利</a>| <a href="http://1897tao.com" target="_blank">免费毛片在线播放</a>| <a href="http://jhc2go.com" target="_blank">a级毛片毛片免费观看永久</a>| <a href="http://664403.com" target="_blank">亚洲国产成人手机在线电影bd</a>| <a href="http://nmcytsi.com" target="_blank">午夜两性色视频免费网站</a>| <a href="http://qihongxia.com" target="_blank">国产免费人成视频在线播放播</a>| <a href="http://ccc16938.com" target="_blank">久久亚洲国产精品成人AV秋霞</a>| <a href="http://www330330.com" target="_blank">日韩免费观看视频</a>| <a href="http://mallmirror.com" target="_blank">中文字幕乱码一区二区免费</a>| <a href="http://www-60060.com" target="_blank">亚洲中文无码卡通动漫野外</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>