freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于web的投票管理系統(tǒng)—免費(fèi)畢業(yè)設(shè)計(jì)(編輯修改稿)

2025-01-04 04:20 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 對(duì)象的,這就使得 ASP 成為一種觸手可及的促進(jìn)軟件重用的開(kāi)發(fā)工具,從而具有強(qiáng)大 的吸引力。 ASP 的基本形式 一些早期的具有 OOP 性能的程序語(yǔ)言如 C++,Pascal,Smalltalk 等,雖然具有面向?qū)ο蟮奶卣?,但不能輕松地畫(huà)出可視化對(duì)象,與用戶(hù)交互能力較差,程序員仍然要編寫(xiě)大量的代碼。 ASP 的推出,填補(bǔ)了這項(xiàng)空白。不必自己建立對(duì)象,只要在提供的程序框架中加入完成功能的代碼,其余的都交給 ASP 去做。欲生成漂亮的界面和結(jié)構(gòu)良好的程序絲毫不必絞盡腦汁, ASP 將幫助輕松地完成。它允許在一個(gè)具有真正 OOP 擴(kuò)展的可視化編程環(huán)境中,使用它的 Object Pascal 語(yǔ)言。這種革命性 的組合,使得可視化編程與面向?qū)ο蟮拈_(kāi)發(fā)框架緊密地結(jié)合起來(lái)。 ASP 的基于構(gòu)件的開(kāi)發(fā)環(huán)境是目前面向?qū)ο蠛蜆?gòu)件開(kāi)發(fā)性能最好的。 ASP 也是用它自己的構(gòu)件庫(kù)來(lái)書(shū)寫(xiě)的 ,在 ASP 上開(kāi)發(fā)應(yīng)用可以簡(jiǎn)單到使用現(xiàn)成的構(gòu)件庫(kù)拼湊而以。 ASP 提供的構(gòu)件庫(kù)稱(chēng)為 VCL,它提供了在 Delphi 上開(kāi)發(fā)應(yīng)用的基石。VCL 幾乎無(wú)所不包 ,它提供了你用于界面設(shè)計(jì)、數(shù)據(jù)訪(fǎng)問(wèn)、列表框、菜單等的各 種一般構(gòu)件 ,它同樣提供了諸如柵格、表、記事薄等各種實(shí)用構(gòu)件。和 ASP 和 Power Objects 一樣 ,ASP 讓程序員從構(gòu)件板上直接拖放構(gòu)件來(lái)構(gòu)造應(yīng)用程序 ,程序員也可以通過(guò)從 VCL 構(gòu)件中繼承其屬性和功能來(lái)創(chuàng)建自己的構(gòu)件 ,以恰好滿(mǎn)足應(yīng)用程序的需要。 ASP 的 Data SQL 提供了 ASP 用于訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)的對(duì)象 ,包括建立連接、訪(fǎng)問(wèn)數(shù)據(jù)、查詢(xún)內(nèi)庫(kù)等等。 Microsoft Database Engine(BDE)則是 ASP 數(shù)據(jù)庫(kù)方案的核心 ,ASP 是通過(guò) BDE 來(lái)與 Oracle、 Sysbase、 Informix、 Interbase、 DB2 以及Microsoft SQL Server 等數(shù)據(jù)庫(kù)通訊的。使用 ODBC 標(biāo)準(zhǔn)接口 ,ASP 也可以訪(fǎng)問(wèn)DBASE 和 Paradox 的文件。 ASP 把許多 BDE 功能加入到構(gòu)件中 ,從而使它成為三個(gè)產(chǎn)品中數(shù)據(jù)庫(kù)開(kāi)發(fā)能力最強(qiáng)的一個(gè)。 新加入的一個(gè)特點(diǎn)是 ,用戶(hù)不需要第三方的開(kāi)發(fā)工具 ,直接能夠在 ASP 的集成環(huán)境中進(jìn)行數(shù)據(jù)庫(kù)操作。 ASP 的 Data SQL 提供了 ASP 用于訪(fǎng)問(wèn)數(shù)據(jù)庫(kù)的對(duì)象 ,包括建立連接、訪(fǎng)問(wèn)數(shù)據(jù)、查詢(xún)內(nèi)庫(kù)等等。 Microsoft Database Engine(BDE)則是 ASP 數(shù)據(jù)庫(kù)方案的核心 ,ASP 是通過(guò) BDE 來(lái)與 Oracle、 Sysbase、 Informix、 Interbase、 DB2 以及Microsoft SQL Server 等數(shù)據(jù)庫(kù)通訊的。使用 ODBC 標(biāo)準(zhǔn)接口 ,ASP 也可以訪(fǎng)問(wèn)DBASE 和 Paradox 的文件。 ASP 把許多 BDE 功能加入到構(gòu)件中 ,從而使它成為三個(gè)產(chǎn)品中數(shù)據(jù)庫(kù)開(kāi)發(fā)能力最強(qiáng)的一個(gè)。 新加入的一個(gè)特點(diǎn)是 ,用戶(hù)不需要第三方的開(kāi)發(fā)工具 ,直接能夠在 ASP 的集成環(huán)境中進(jìn)行數(shù)據(jù)庫(kù)操作。 關(guān)系型數(shù)據(jù)庫(kù)的實(shí)現(xiàn) ASP 也是關(guān)系數(shù)據(jù)庫(kù)開(kāi)發(fā)工具,數(shù)據(jù)庫(kù)能匯集各種信息以供查詢(xún)、存儲(chǔ)和檢索。關(guān)系數(shù)據(jù)庫(kù)是已開(kāi)發(fā)的最通用的數(shù)據(jù)庫(kù)之一。 SQL SERVER 作為關(guān)系數(shù)據(jù)庫(kù)開(kāi)發(fā)具備了許多優(yōu)點(diǎn),可以在一個(gè)數(shù)據(jù)包中 同時(shí)擁有桌面數(shù)據(jù)庫(kù)的便利和關(guān)系數(shù)據(jù)庫(kù)的強(qiáng)大功能。 1. 用 SQL 語(yǔ)句和存儲(chǔ)過(guò)程進(jìn)行數(shù)據(jù)更新 通過(guò)數(shù)據(jù)源對(duì)象返回的查詢(xún)集不僅包含了數(shù)據(jù),而且也包含了元數(shù)據(jù)( metadata) ,在有些時(shí)候元數(shù)據(jù)可能比數(shù)據(jù)本身還要大,所以最好采用 SQL 語(yǔ)句來(lái)更新數(shù)據(jù)。還有要使用存儲(chǔ)過(guò)程而不是單一的 SQL 語(yǔ)句來(lái)獲取信息。因?yàn)榇鎯?chǔ)過(guò)程是在服務(wù)器端執(zhí)行的,只把結(jié)果返回到客戶(hù)端,這樣一方面可以降低網(wǎng)絡(luò)進(jìn)行數(shù)據(jù)交互的開(kāi)銷(xiāo),另一方面使系統(tǒng)更加容易維護(hù),并且能保持?jǐn)?shù)據(jù)的一致性。 2. 只查詢(xún)所需要的數(shù)據(jù) 盡管很多開(kāi)發(fā)人員都習(xí)慣采用“ SELECT * FROM TBL”的模式進(jìn)行查詢(xún),但是為了提高系統(tǒng)的效率,如果只需要其中某幾個(gè)字段的值,最好把這幾個(gè)字段直接寫(xiě)出來(lái),同時(shí)需要限定返回記錄集的范圍(通過(guò) WHERE 子句進(jìn)行限定)。 本次設(shè)計(jì)的程序設(shè)計(jì)分析 本次開(kāi)發(fā)使用 ADO 連接數(shù)據(jù)庫(kù)。 部分代碼如下 % 39。connects to database using recordset method function dataconn(database,connection,recordset) set connection = () set recordset = () dbq= amp。 (database) amp。 。driver={microsoft access driver (*.mdb)}。 end function % html head titlepoll example/title /head body form name=languages method=post action= pwhat is your favoutrite language?/p % 39。calls dataconn function to open dataconn files/,podc,lars 39。selects all fields within tbllanguages select * from tbllanguages, podc 39。loop through and display each record within the database as a radio button do while not lars(language) amp。 : input type=radio name=39。language39。 value=39。 amp。 lars(language) amp。 39。br loop 39。close database connection set podc = nothing % a view poll/a input type=submit value=vote /form /body /html once connected to the database the script loops through each record, and displays that option as a radio button. when the 39。vote39。 button is pressed, the individual value of the selected radio button is submitted to the next page. the code for the next page is shown below: page: % 39。define all variables that will be used dim i, percent 39。connects to database using recordset method function dataconn(database,connection,recordset) set connection = () set recordset = () dbq= amp。 (database) amp。 。driver={microsoft access driver (*.mdb)}。 end function % html head titlepolling sample/title /head body % 39。calls dataconn function to open dataconn files/,podc,lars 39。selects all fields within tbllanguages select * from tbllanguages, podc,1,2 39。loop through and total up number of votes for all records do while not 39。if record contains voted language then increment votes if lars(language) = (language) then lars(votes) = lars(votes) + 1 end if i = i + lars(votes) loop 39。calculate value which will be used to calculate percentage percent = 100 / i 39。loop through and recalculate percentage of votes for each record do while not lars(percentage) = lars(votes)*percent loop 39。selects all fields within tbllanguages select * from tbllanguages order by percentage desc, podc 39。loop through and display all updated records do while not b amp。 lars(language) amp。 /bi (votes: amp。 lars(votes) amp。 )/i 39。set pixelwidth of table cells to percentage number table cellpadding=0 cellspacing=0 10 width= amp。 lars(percentage) amp。 bgcolor= amp。 lars(barcolour) amp。 trtd/table amp。 lars(percentage) amp。 %br loop 39。close database connections set podc = nothing % /body /html 使用 SQL 操作關(guān)系型數(shù)據(jù)庫(kù) 數(shù)據(jù)庫(kù)的概念 數(shù)據(jù)庫(kù)是以數(shù)據(jù)(數(shù)據(jù)就是對(duì)客觀(guān)事物的符號(hào)表示,是存儲(chǔ)在計(jì)算機(jī)中的模擬客觀(guān)事物的一系列信息。對(duì)于計(jì)算機(jī)科學(xué)而言,數(shù)據(jù)的含義極為廣泛,凡是可存儲(chǔ)的信息,如文本、圖象、聲音等都可以通過(guò)二進(jìn)制編碼而形成數(shù)據(jù))為對(duì)象,指為了滿(mǎn)足某種特定應(yīng)用的需要,按照一定的數(shù)據(jù)模型在計(jì)算機(jī)系統(tǒng)中組織、存儲(chǔ)和使用數(shù)據(jù)的數(shù)據(jù)集合。數(shù)據(jù)庫(kù)系統(tǒng) 是管理大量的、持久的、可靠的和共享的數(shù)據(jù)的工具。 數(shù)據(jù)庫(kù)有以下特點(diǎn): ( 1) 集成性:數(shù)據(jù)有兩層含義,一個(gè)是數(shù)據(jù)本身,一個(gè)是數(shù)據(jù)之間的關(guān)系。集成就是指把數(shù)據(jù)集中到一起來(lái),按照一定的結(jié)構(gòu)形式進(jìn)行存儲(chǔ),并通過(guò)一系列的機(jī)制約束數(shù)據(jù) 之間的關(guān)系,避免數(shù)據(jù)重復(fù)或不合要求。 ( 2) 量大性:數(shù)據(jù)庫(kù)中存放的數(shù)據(jù)量一般都比較龐大,不能同時(shí)在內(nèi)存中全部調(diào)用,而只能通過(guò)外部存儲(chǔ)器存儲(chǔ),通常使用大容量的可移動(dòng)磁盤(pán)或硬盤(pán)等設(shè)備。 ( 3) 共享性:指多個(gè)不同的用戶(hù),為了不同的目的,可以使用不同的語(yǔ)言,通過(guò)不同的方式,訪(fǎng)問(wèn)同一個(gè)數(shù)據(jù)庫(kù),而訪(fǎng)問(wèn)的范圍、可執(zhí)行的 操作會(huì)有所區(qū)別。數(shù)據(jù)庫(kù)系統(tǒng)會(huì)提供相應(yīng)的機(jī)制,保證這種共享在有序的條件下進(jìn)行,可以避免因?yàn)橥蕉斐傻腻e(cuò)誤。 ( 4) 持久性:一般來(lái)說(shuō),數(shù)據(jù)庫(kù)中是數(shù)據(jù)都需要長(zhǎng)期保存。 SQL 中的常用語(yǔ)句 ( 1) 添加語(yǔ)句:向表中添加一個(gè)新記錄。 Insert table(column)values(‘ somedata’ ) ( 2) 刪除語(yǔ)句:從表中刪除一條或多條語(yǔ)句。 Delete table where first=’ deleteme’ ( 3) 更新記錄:更改表中已經(jīng)存在的一條記錄或多條記錄。 Updata {table name}[{ table name }]where clause ( 4) 用 select 創(chuàng)建記錄和表 insert table(first_column,second_column) select another_first_column,another_sencond_column from anothertable where another_first_column=’ copy me’ 這條語(yǔ)句從 anothertable 拷貝記錄到 table 中,只有 anothertable中字段為 another_first_column 的值為 copy me 的記錄被拷貝。 數(shù)據(jù)庫(kù)表設(shè)計(jì) 本系統(tǒng)的數(shù)據(jù)庫(kù)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1