【正文】
重點是時間和空間效率。使用索引可以大大的減少數(shù)據(jù)查詢的時間。應根據(jù)系統(tǒng)的具體情況創(chuàng)建索引。在主關鍵字上建立索引。在經常需要根據(jù)范圍進行搜索的列上創(chuàng)建索引。在經常成為查詢條件的列上創(chuàng)建索引。在確定了數(shù)據(jù)庫的訪問方式之后,就應該利用相應的組件進行數(shù)據(jù)庫鏈接。在企業(yè)網(wǎng)站的開發(fā)過程中,并沒有采用BDE方式訪問數(shù)據(jù)庫,而是采用了ADO方式訪問數(shù)據(jù)庫。OLE DB訪問速度快,可訪問數(shù)據(jù)類型豐富,包括關系型和非關系型數(shù)據(jù)庫、電子郵件與文件系統(tǒng),文本與圖片以及客戶事務對象等。ADO組件包括3個核心組件分別是用于數(shù)據(jù)庫鏈接的ADOConnection和用于執(zhí)行SQL命令的ADOCommand以及用于執(zhí)行返回結果集合請求的ADODataSet組件。數(shù)據(jù)庫文件位置on error resume nextconnstr=DBQ=+(amp。)+。DRIVER={Microsoft Access Driver (*.mdb)}。 軟件和硬件環(huán)境隨著計算機技術的發(fā)展,系統(tǒng)軟件的功能也日益強大起來了,為用戶提供了更加友好和方便的操作平臺。硬件環(huán)境:Pentiun450以上檔次的CPU128MB以上的內存儲器10G以上的硬盤空間VGA或更高分辨率的顯示器CDROM驅動器聲卡以及音箱等軟件環(huán)境操作平臺為Windows 2000 系列應用軟件為.:Microsoft Access、 Dream weaver MX 2004。Dream weaver MX 2004:Dream weaver MX 2004是Macromedia公司出品的著名網(wǎng)站設計制作軟件。Dream weaver MX 2004開發(fā)環(huán)境支持Coldfusion,Html,Xhtml,Asp,Microsoft,Asp,Net,Jsp和Php等,既容易使用又功能強大。它強大的代碼編輯功能包括代碼提示,標簽編輯器,可擴展的著色代碼,標簽選擇器,代碼分段以及代碼驗證等。Microsoft Access數(shù)據(jù)庫:Access數(shù)據(jù)庫主要有數(shù)據(jù)表設計、可視查詢設計、SQL查詢語言、窗體設計、報表設計、Web頁設計、宏設計和VBA程序設計,充分展示了Access數(shù)據(jù)庫作為面向對象的關系型數(shù)據(jù)庫的各種完善的功能。使用Web技術快速獲取信息,并把它按您的特殊用途裁剪。 網(wǎng)站首頁的實現(xiàn)。%Sum = 0While Not Quatity = CInt( Request( Q_ amp。 rs(Product_Id)% Value=%=Quatity% Size=3 /td td align=center width=119 bgcolor=F0FCFFinput Type=CheckBox Name=cpbm Value=%=rs(Product_Id)% Checked /td/tr%Wend%(2)。 amp。 39。 , 39。 cpbm amp。End IfEnd Subsql=select * from homeSet rs_home= () sql,conn,1,1ProductList = Session(ProductList)flags=尚未處理If Len(ProductList) = 0 Then end if39。本部分代碼實現(xiàn)為把提交的一個用戶信息添加到數(shù)據(jù)庫rs(username)=(username)rs(Comane)=(Comane)rs(Somane)=(Somane)rs(Add)=(Add)rs(Zip)=(Zip)rs(Phone)=(Phone)rs(Fox)=(Fox)rs(Email)=(Email)rs(Pays)=(Pays)rs(Flag)=flagsrs(Remark)=(Remark)If rs(Remark)= thenrs(Remark)=無End Ifsql=select Form_Id from OrderList order by regtime desc sql,conn,3,3a=rs(0)%%products=split(request(cpbm),)for i=0 to UBound(Products)39。 Where Product_Id In ( amp。 )sql = sql amp。rs2(P_NewPrice)=ccur(rs(P_NewPrice))% 產品搜索功能模塊的實現(xiàn)產品搜索功能模塊代碼的實現(xiàn)。 strField amp。Keyword= amp。 amp。 BigClassName amp。SmallClassName= amp。nbsp。nbsp。gt。gt。?BigClassName= amp。 39。 BigClassName amp。nbsp。gt。gt。nbsp。?BigClassName= amp。 amp。 SmallClassName amp。 amp。 /aamp。amp。amp。amp。 else 所有小類amp。amp。amp。amp。 end if end if if keyword then select case strField case Title 名稱中含有 font color=redamp。/font 的產品 case Content 說明含有 font color=redamp。/font 的產品 case else 名稱中含有 font color=redamp。/font 的產品 end select else amp。所有產品 end ifend sub2顯示搜索結果總數(shù)代碼實現(xiàn)sub SearchResultTotal() dim rsTotal,sqlTotal sqlTotal=select count(*) from Product where Passed=True if BigClassName then sqlTotal=sqlTotal amp。 amp。 39。 and SmallClassName=39。 SmallClassName amp。 end if else if SpecialName then sqlTotal=sqlTotal amp。 amp。 39。 and Title like 39。 keyword amp。 case Content sqlTotal=sqlTotal amp。% amp。 %39。 and Title like 39。 keyword amp。 end select end if Set rsTotal= () sqlTotal,conn,1,1 if and then totalPut=0 共有 0 個產品 else totalPut=rsTotal(0) 共找到 amp。 個產品 end ifend sub查看產品信息代碼實現(xiàn):類別查看:%ShowSmallClassType=ShowSmallClassType_DefaultMaxPerPage=MaxPerPage_DefaultstrFileName=?BigClassName= amp。 amp。 SmallClassName %產品詳細信息查看:% |amp。a href=39。 rs(BigClassName) amp。 amp。 /aamp。amp。amp。amp。if rs(SmallClassName) amp。?BigClassName=amp。amp。 rs(SmallClassName) amp。 amp。 /aamp。amp。amp。amp。end if rs(Title)% 信息反饋功能模塊實現(xiàn)。只有管理員才有權限在論壇中對已發(fā)表的貼子進行回復,而普通游客則沒有權限回復貼子,因些回復貼子之前,要對論壇訪問者的身份進行驗證。(1)。(1)。(1)。(1)。(1)。采用這種方式既發(fā)揮了Web技術的優(yōu)勢,使信息流轉、信息發(fā)布、查詢和維護更加方便;系統(tǒng)的功能擴展和規(guī)模擴展更加便利;系統(tǒng)開發(fā)速度更快、開發(fā)成本更低;也符合中小企業(yè)的實際情況。而且,采用這種開發(fā)方式開發(fā)的辦公自動化系統(tǒng)具有良好的擴充升級功能,能夠適應企業(yè)未來發(fā)展的需要。企業(yè)網(wǎng)站正是通過先進的INTERNET技術,來滿足企業(yè)的要求, 成為企業(yè)產品、服務和整體形象的象征。:人民郵電出版社, 2006 [7] 鄭阿奇. :電子工業(yè)出版社, 2006 [8] :機械工業(yè)出版社, 2005[9] :人民郵電出版社,2002 [10] :機械工業(yè)出版社, 2005 [11] MX :中國青年出版社, 2005 [12] 石志國、:清華大學出版社, 2006 [13] 譙誼. :機械工業(yè)出版社, 2002 [14] :北京大學出版社, 2006 [15] :電子工業(yè)出版社, 2006 [16] HansBergsten,林琪, 2004 [17] WilliamCrawford,, 2003[18] :中國水利水電出版社,2005 [19] . 北京:機械工業(yè)出版社,2005致 謝本文從擬定題目到定稿,歷時數(shù)月。在論文的寫作過程中,翟老師給了我許許多多的幫助和關懷。在此我謹向翟老師表示衷心的感謝和深深的敬意。 我也要感謝我的母校遼寧工學院,是她提供了良好的學習環(huán)境和生活環(huán)境,讓我的大學生活豐富多姿,為我的人生留下精彩的一筆。 later articles will discuss these client patterns in more detail. Two mon problems in software development are how you municate to your business logic and how you municate from the client to the server. Establishing munication to business logic requires that you do so without coupling it so tightly to the view that a change (either in the logic or view) affects the entire application. When you municate to the server, you need to ensure each request contains the necessary markup to establish security, session, or state management. You must establish each message to the server as a valid request or inspect the message for tokens used by the entire application.There are a variety of languages that implement a traditional Internet model, the J2EE environment being prominent. In a Java environment, you often use a business delegate pattern to structure munication to business logic. This pattern, in its simplest form, uses a wrapper around the actual business logic. This wrapper translates an invocation request from the client to the proper request on the business logic ponent. To solve the server munication issue, many use the front controller pattern. This pattern routes all requests to a single controller file that validates security and establishes the correct flow of control so that it can create the correct response in the form of an HTML page. These two patterns often work together in a variety of posite structures. Implementing a Rich Internet Application architecture is not terribly different from implementing a traditional web client, except that you move some of these activities from the server to the client. From an application design perspective, two highlevel