




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、目 錄一、引言1.1、編寫目的11.2、 定義2.1.3、數(shù)據(jù)庫(kù)設(shè)計(jì)步驟3二、需求分析2.1、功能分析32.2、業(yè)務(wù)活動(dòng)52.3、數(shù)據(jù)字典72.4、數(shù)據(jù)流圖11三、結(jié)構(gòu)設(shè)計(jì)3.1、概念設(shè)計(jì)113.2、總體e-r圖設(shè)計(jì)123.3、邏輯設(shè)計(jì)143.4、物理設(shè)計(jì)14四、運(yùn)用設(shè)計(jì)4.1、程序源碼與用戶界面17 4.3、系統(tǒng)運(yùn)行與維護(hù)19五、參考文獻(xiàn)5.1、參考文獻(xiàn)201引言1.1編寫目的目前大多數(shù)廠商忽略了汽車銷售管理系統(tǒng)的重要性,而本系統(tǒng)專為具有一定規(guī)模和經(jīng)濟(jì)條件的大型汽車廠設(shè)計(jì)。從進(jìn)貨管理:車輛采購(gòu)、車輛入庫(kù),銷售管理到車輛銷售、收益統(tǒng)計(jì)等,為每個(gè)環(huán)節(jié)明確分工,并通過可視化的軟件支持,有效減小了人
2、為差錯(cuò)的概率,代之以高效、便捷、準(zhǔn)確的數(shù)字化服務(wù)系統(tǒng),使汽車銷售管理更加規(guī)范化。根據(jù)所學(xué)的數(shù)據(jù)庫(kù)原理與程序設(shè)計(jì)的知識(shí),能夠針對(duì)一個(gè)小型的數(shù)據(jù)庫(kù)管理系統(tǒng)進(jìn)行系統(tǒng)的需求分析,系統(tǒng)設(shè)計(jì),數(shù)據(jù)庫(kù)設(shè)計(jì),編碼,測(cè)試等,完成題目要求的功能,加深對(duì)數(shù)據(jù)庫(kù)系統(tǒng)、軟件工程、程序設(shè)計(jì)語言的理論知識(shí)的理解和應(yīng)用水平,通過設(shè)計(jì)實(shí)際的數(shù)據(jù)庫(kù)系統(tǒng)應(yīng)用課題,進(jìn)一步熟悉數(shù)據(jù)庫(kù)管理系統(tǒng)的操作技術(shù),提高動(dòng)手能力,提高分析問題和解決問題的能力。從而達(dá)到掌握開發(fā)一個(gè)小型數(shù)據(jù)庫(kù)的目的。1.2定義1、系統(tǒng)名稱:汽車銷售管理系統(tǒng)2、數(shù)據(jù)庫(kù)管理軟件:microsoft sql server3、數(shù)據(jù)庫(kù)設(shè)計(jì)人員:洪保江4、使用本數(shù)據(jù)庫(kù)的程序:。5
3、、數(shù)據(jù)庫(kù)設(shè)計(jì)采用軟件:microsoft office visio 20036、系統(tǒng)采用c/s體系結(jié)構(gòu):client (客戶端)負(fù)責(zé)提供表達(dá)邏輯、顯示用戶界面信息、訪問數(shù)據(jù)庫(kù)服務(wù)器;server (服務(wù)器)端用于提供數(shù)據(jù)服務(wù)。7、運(yùn)行平臺(tái):windows 2000/xp/linux1.3、數(shù)據(jù)庫(kù)設(shè)計(jì)步驟2、需求分析2.1功能分析進(jìn)行需求分析首先是調(diào)查清楚用戶的實(shí)際要求,與用戶達(dá)成共識(shí),然后分析與表達(dá)這些需求。調(diào)查廠商與各部門需求的具體步驟如下: (1).調(diào)查廠商組織情況。包括了解各組織的部門組成情況,各部門的職責(zé)等,為分析信息流程做準(zhǔn)備。 (2).調(diào)查各部門的業(yè)務(wù)活動(dòng)情況。包括了解各個(gè)部門和使
4、用什么數(shù)據(jù),如何加工處理這些數(shù)據(jù),輸出什么信息,輸出到什么部門,輸出結(jié)果的格式是什么,這些是調(diào)查的重點(diǎn)。 (3).在熟悉了業(yè)務(wù)活動(dòng)的基礎(chǔ)上,協(xié)助用戶明確對(duì)新系統(tǒng)的各種要求,包括信息要求,處理要求,安全性與完整性要求,這是調(diào)查的又一重點(diǎn)。 (4).確定新系統(tǒng)的邊界。對(duì)前面調(diào)查的結(jié)果進(jìn)行初步分析,確定哪些功能由計(jì)算機(jī)完成或?qū)頊?zhǔn)備讓計(jì)算機(jī)完成,哪些活動(dòng)由人工完成。調(diào)查本地從事汽車銷售的企業(yè),根據(jù)企業(yè)汽車銷售的情況,設(shè)計(jì)用于汽車銷售的管理系統(tǒng),主要功能有:基礎(chǔ)信息管理:廠商信息、車型信息和客戶信息;進(jìn)貨管理:車輛采購(gòu)、車輛入庫(kù);銷售管理:車輛銷售(處理車輛銷售單)、銷售代辦(處理銷售代辦單)、車輛查
5、詢、銷售日記錄、銷售月記錄;倉(cāng)庫(kù)管理:庫(kù)存車輛、倉(cāng)庫(kù)明細(xì)、進(jìn)銷存統(tǒng)計(jì);系統(tǒng)維護(hù):如數(shù)據(jù)安全管理(含備份與恢復(fù))、操作員管理、權(quán)限設(shè)置等;2.2業(yè)務(wù)活動(dòng)一、市場(chǎng)工作 1、 獲取訂單(有能力可做) a、聯(lián)絡(luò)經(jīng)銷商倉(cāng)管員,了解經(jīng)銷商庫(kù)存; b、聯(lián)絡(luò)經(jīng)銷商采購(gòu)購(gòu)報(bào)價(jià); c、結(jié)合經(jīng)銷商庫(kù)存情況,主動(dòng)爭(zhēng)取訂單; d、尋找經(jīng)銷商的配貨意向進(jìn)行展異議處理; e、獲得訂單,并交由分公司助理安排送貨; f、跟蹤送貨員貸物交接情況及協(xié)助送貸員解決收款中遇到的困難。 二、 客戶拜訪及市場(chǎng)工作 第一步 準(zhǔn)備工作: a、檢查每周工作記事表,確定當(dāng)日拜記路線; b、 準(zhǔn)備當(dāng)日需解決的問題,預(yù)約當(dāng)日需拜訪客戶; 第二步 銷售
6、拜訪 a、接觸:?jiǎn)柡蚧蜃晕医榻B通過改變交談環(huán)境、車輪話術(shù)等方法,確定良好的溝通氛圍;b、收集市場(chǎng)資訊及客戶銷售資料及填報(bào)表;c、了解競(jìng)爭(zhēng)對(duì)手及品牌機(jī)型的市場(chǎng)動(dòng)向;d、進(jìn)行異議處理、協(xié)助客戶在銷售中存在的問題。 第三步 總結(jié)與調(diào)整 a、 回顧當(dāng)日工作進(jìn)展?fàn)顩r,填寫每日工作日記; b、 總結(jié)當(dāng)時(shí)工作中遇到的問題,失誤與成就,并及時(shí)做出調(diào)整; c、 根據(jù)當(dāng)時(shí)進(jìn)展?fàn)顩r,對(duì)每周工作記事表做出調(diào)整。2.3數(shù)據(jù)字典1、數(shù)據(jù)項(xiàng)編號(hào)數(shù)據(jù)項(xiàng)名稱說 明 部 分編號(hào)數(shù)據(jù)項(xiàng)名 稱說 明 部 分1客戶姓名文本類型 長(zhǎng)度為20字符2工作單位文本類型 長(zhǎng)度為20字符3性別字符串類型 男、女4年齡 整數(shù)類型 181005客戶號(hào)
7、字符串類型 有唯一性6聯(lián)系電話整數(shù)類型 7車型號(hào)字符串類型 有唯一性8價(jià)格浮點(diǎn)型9車輛狀態(tài)枚舉類型 被訂、未訂10廠商名文本類型 有唯一性11廠商號(hào)字符串類型 有唯一性12地址文本類型 長(zhǎng)度為30字符13生產(chǎn)車輛總數(shù)整數(shù)類型14廠商狀態(tài)枚舉類型 忙、閑15訂單號(hào)整數(shù)類型 訂單所屬的類別16訂貨日期時(shí)間類型 */*17交貨日期時(shí)間類型 */*18倉(cāng)庫(kù)號(hào)字符串類型 有唯一性19進(jìn)貨車輛數(shù)整數(shù)類型 20出貨車輛數(shù)整數(shù)類型21庫(kù)存車輛總數(shù)整數(shù)類型22出售車輛數(shù)整數(shù)類型23車輛總成本整數(shù)類型 24獲取總金額整數(shù)類型25利潤(rùn)整數(shù)類型 26買車時(shí)間時(shí)間類型27保修期限時(shí)間類型28備注文本類型19車輛名稱字符
8、串類型 長(zhǎng)度為20字符2、數(shù)據(jù)結(jié)構(gòu)編號(hào)數(shù)據(jù)結(jié)構(gòu)名屬 性1客戶客戶姓名、性別、年齡、客戶號(hào)、工作單位、聯(lián)系電話2車輛車型號(hào)、車輛名稱、廠商名、價(jià)格、車輛狀態(tài)3廠商廠商名、廠商號(hào)、地址、生產(chǎn)車輛總數(shù)、廠商狀態(tài)、備注4訂單訂單號(hào)、客戶號(hào)、訂貨日期、交貨日期、地址、是否存有、是否已訂5倉(cāng)庫(kù)倉(cāng)庫(kù)號(hào)、地址、進(jìn)貨車輛數(shù)、出貨車輛數(shù)、庫(kù)存車輛總數(shù)、6車輛銷售車型號(hào)、廠商號(hào)、出售車輛數(shù)、車輛總成本、獲取總金額、利潤(rùn)7訂貨客戶、廠商、車輛、買車時(shí)間、保修期限3、數(shù)據(jù)流編號(hào)數(shù) 據(jù) 流 名輸 入輸 出1變更客戶變更信息客戶信息2查詢客戶客戶號(hào)客戶信息3變更廠商變更信息廠商信息4查詢廠商廠商號(hào)廠商信息5變更車輛變更信息
9、車輛信息6查詢車輛車型號(hào)車輛信息7變更訂單變更信息訂單信息8查詢訂單訂單號(hào)訂單信息9變更倉(cāng)庫(kù)變更信息倉(cāng)庫(kù)信息10倉(cāng)庫(kù)倉(cāng)庫(kù)號(hào)地址11變更車輛銷售變更信息車輛銷售信息12查詢車輛銷售車輛銷售數(shù)利潤(rùn)13查詢空閑廠商廠商狀態(tài)限制條件空閑廠商信息14結(jié)賬車型號(hào)購(gòu)買信息15提交訂貨請(qǐng)求客戶號(hào)、車型號(hào)、價(jià)格、廠商號(hào)車輛信息16獲得訂貨請(qǐng)求訂貨信息車型號(hào)、廠商號(hào)、客戶號(hào)17提交訂單信息車型號(hào)、廠商號(hào)訂單信息18變更廠商分工信息廠商號(hào)、車型號(hào)廠商分工信息19預(yù)定車輛車型號(hào)車輛信息20付款車型號(hào)待添加的隱藏文字內(nèi)容3車輛信息、廠商信息4、數(shù)據(jù)存儲(chǔ)數(shù)據(jù)存儲(chǔ)名輸入數(shù)據(jù)流輸出數(shù)據(jù)流說 明 部 分客戶信息變更客戶查詢客戶
10、提交訂貨請(qǐng)求車輛信息變更車輛查詢車輛獲得訂貨請(qǐng)求廠商信息變更廠商查詢房間提交訂貨請(qǐng)求查詢空閑廠商車輛銷售信息變更車輛銷售查詢廠商提交點(diǎn)貨請(qǐng)求查詢空閑廠商提交訂貨信息提交訂單信息訂單信息變更訂單結(jié)賬提交訂貨請(qǐng)求訂貨信息提交訂貨請(qǐng)求提交訂單信息結(jié)賬獲得訂貨請(qǐng)求廠商分工信息變更廠商分工信息5、處理過程處理過程名輸入數(shù)據(jù)流輸出數(shù)據(jù)流說 明 部 分客戶登記終端變更車輛變更廠商訂貨終端提交訂貨請(qǐng)求獲得訂貨請(qǐng)求訂貨獲得訂貨請(qǐng)求提交訂貨信息訂單提交訂貨信息提交訂單信息客戶結(jié)賬結(jié)賬2.4數(shù)據(jù)流圖1、頂層進(jìn)程銷售管理子系統(tǒng)第一層數(shù)據(jù)流圖2、第二層 (1)進(jìn)程1接受訂單 (2) 進(jìn)程2處理訂單(3) 進(jìn)程3開發(fā)票(
11、4) 進(jìn)程4結(jié)帳系統(tǒng)3、結(jié)構(gòu)設(shè)計(jì)3.1概念結(jié)構(gòu)設(shè)計(jì)在概念設(shè)計(jì)中,通常用四種方法: (1). 自頂向下,首先定義全局概念結(jié)構(gòu)的框架,然后逐步細(xì)化. (2). 自底向上,首先定義各局部應(yīng)用的概念結(jié)構(gòu),然后將他們集成起來,得到全局概念結(jié)構(gòu). (3). 逐步擴(kuò)張. 首先定義最核心的概念結(jié)構(gòu),然后向外擴(kuò)充,直至總體概念結(jié)構(gòu). (4). 混合策略. 即自頂向下和自底向上相結(jié)合,用自頂向下策略設(shè)計(jì)一個(gè)全局概念結(jié)構(gòu)的框架,以它為骨架集成由自底向上策略中設(shè)計(jì)的各局部概念結(jié)構(gòu). 我在此設(shè)計(jì)中采用自底向上的方法,逐步實(shí)現(xiàn)數(shù)據(jù)庫(kù)的設(shè)計(jì),得到全局概念.3.2、總體e-r圖設(shè)計(jì)3.3邏輯結(jié)構(gòu)設(shè)計(jì)331基本表1、客戶基本表
12、屬性中文名稱屬性名類型長(zhǎng)度說明客戶號(hào)c_nochar20主碼:公司統(tǒng)一編號(hào),具有唯一性客戶姓名user_namechar20客戶名稱服務(wù)員性別user_sexchar4客戶性別服務(wù)員年齡user_ageint18100聯(lián)系電話user_telint工作單位unitchar20客戶所在工作場(chǎng)所2、車輛基本表屬性中文名稱屬性名類型長(zhǎng)度說明車型號(hào)car_nochar10主碼:廠商統(tǒng)一編號(hào),具有唯一性車輛名稱car_namechar20車輛名稱廠商名industty_namechar文本類型 有唯一性價(jià)格pricefloat車輛狀態(tài)statusboolean枚舉類型 被訂、未訂3、廠商基本表屬性中文名
13、稱屬性名類型長(zhǎng)度說明廠商號(hào)industty_nochar10主碼:廠商統(tǒng)一編號(hào),具有唯一性廠商名industty_namechar文本類型 有唯一性地址addresschar10廠商狀態(tài)statusboolean忙:1;空閑:0生產(chǎn)車輛總數(shù)car_amountint4、倉(cāng)庫(kù)表屬性中文名稱屬性名類型長(zhǎng)度說明倉(cāng)庫(kù)號(hào)box_nochar10主碼:廠商統(tǒng)一編號(hào),具有唯一性地址addresschar10進(jìn)貨車輛數(shù)in_amountint倉(cāng)庫(kù)開始進(jìn)車輛的數(shù)量出貨車輛數(shù)ou_amountint倉(cāng)庫(kù)已賣出的車輛數(shù)量庫(kù)存車輛總數(shù)remain_amountint倉(cāng)庫(kù)現(xiàn)存有的車輛數(shù)量5、車輛銷售基本表屬性中文名稱屬
14、性名類型長(zhǎng)度說明車型號(hào)car_nochar10外碼:參照車輛表的車型號(hào)廠商號(hào)industty_nochar10外碼:依照廠商表的廠商號(hào)出售車輛數(shù)sale_amountint車輛總成本car_moneyfloat車輛進(jìn)貨的成本獲取總金額moneyfloat利潤(rùn)beniftfloat盈:1 虧:06、訂單表屬性中文名稱屬性名類型長(zhǎng)度說明訂單號(hào)order_noint10訂單所屬的類別客戶號(hào)c_nochar20外碼:參照客戶表的客戶號(hào)訂貨日期order_datadata訂貨時(shí)間交貨日期hand_datadata交貨期限廠商號(hào)industty_nochar10外碼:依據(jù)廠商表中的廠商號(hào)是否存有madeb
15、oolean默認(rèn):false(沒有)是否已訂ordersboolean默認(rèn):false (未訂)332視圖1、空閑廠商(廠商號(hào),廠商名)從廠商基本表導(dǎo)出2、進(jìn)銷存統(tǒng)計(jì)(倉(cāng)庫(kù)號(hào),進(jìn)貨車輛數(shù),出貨車輛數(shù))從倉(cāng)庫(kù)基本表導(dǎo)出3、所有車輛銷售信息(車型號(hào),廠商號(hào),車輛狀態(tài))從車輛和廠商基本表導(dǎo)出4、付款(車型號(hào),廠商號(hào),車輛名,價(jià)格)從車輛表、廠商表導(dǎo)出5、訂單生成視圖訂單(訂單號(hào),客戶號(hào),訂貨日期,交貨日期,地址,是否存有,是否已訂)從訂單表、客戶表導(dǎo)出6、收益統(tǒng)計(jì)信息(車型號(hào),出售車輛數(shù),車輛總成本,獲取總金額,利潤(rùn))從車輛表、車輛銷售表導(dǎo)出3.4物理結(jié)構(gòu)設(shè)計(jì)在物理結(jié)構(gòu)設(shè)計(jì)階段首先分兩步走:(1)確
16、定數(shù)據(jù)庫(kù)的物理結(jié)構(gòu),在關(guān)系數(shù)據(jù)庫(kù)中主要是指存取方法和存儲(chǔ)結(jié)構(gòu)。(2)對(duì)物理結(jié)構(gòu)的評(píng)價(jià)是時(shí)間和空間效率。選取正確的關(guān)系模式存取方法,常用的有:(1)存取索引方法。(2)聚簇存取。(3)hash存取方法等。4 運(yùn)用設(shè)計(jì)4.1、程序源碼與用戶界面#include<stdlib.h>#include<stdio.h>#include<windows.h>#include<sql.h>#include<sqlext.h>#include<sqltypes.h>#define car-no-len 50#define use-age-
17、sex 5#define car-name-len 50#define depart-len 100#define car-price-len 30#define status_len 100int main() /* step 1 定義句柄和變量 */ /以king開頭的表示的是連接kingbasees的變量 /以server開頭的表示的是連接sqlserver的變量 sqlhenv kinghenv,serverhenv; /環(huán)境句柄 sqlhdbc kinghdbc,serverhdbc; /連接句柄 sqlhstmt kinghstmt,serverhstmt; /語句句柄 sqlre
18、turn ret; sqlchar cnamename-len,departdepart-len,cnono-len,cpriceprice-len,statusstatus-len; sqlinteger ssta,ssage; sqlinteger cbage=0,cbsta=0,cbcno=sql-nts,cbprice=sql-nts,cbname=sql-nts,cbdeopart=sql-nts; /*step 2 初始化環(huán)境 */ret=sqlallochandle(sql-handle-env,sql-null-handle,&kinghenv);ret=sqlallo
19、chandle(sql-handle-env,sql-null-handle,&serverhenv);ret=sqlsetenvattr(kinghenv,sql-attr-odbc-version,(void*)sql-ov-odbc3,0);ret=sqlsetenvattr(serverhenv,sql-attr-odbc-version,(void*)sql-ov-odbc3,0); /*step 3:建立連接 */ret=sqlallochandle(sql-handle-dbc,kinghenv,&kinghdbc);ret=sqlalloochandle(sql
20、-handle-dbc,serverhenv,&serverhdbc);ret=sqlconnect(kinghdbc,"kingbasees odbc",sql-nts,"system",sql-nts,"manager",sql-nts);if(! sql-succeeded(ret) return -1; /連接失敗時(shí)返回錯(cuò)誤值ret=sqlconnect(serverhdbc,"sqlserver",sql-nts,"sa",sql-nts,"sa",sql-
21、nts);if(! sql-succeeded(ret) return -1; /連接失敗時(shí)返回錯(cuò)誤值 /* step 4: 初始化語句句柄 */ret=sqlallochandle(sql-handle-stmt,kinghdbc,&kingstmt);ret=sqlsetstmtattr(kingstmt,sql-attr-row-bind-byte, (sqlpointer)sql-bind-by-column,sql-is-integer);ret=sqlallochandle(sql-handle-stmt,serverhdbc,&serverhstmt);/* st
22、ep 5:兩種方式執(zhí)行語句 */* 預(yù)編譯帶有參數(shù)的語句 */ret=sqlprepare(serverhstmt,"insert into student (car_no,car_name ,department_name,price,status )values (?,?,?,?)",sql_nts);if (ret=sql_success ret=sql_success_with_info)ret=sqlbindparameter(serverhstmt,1,sql_param_input,sql_c_char, sql-char,car_no_len,0,car_n
23、o,0,&cbcar_no);ret=sqlbindparameter(serverhstmt,2,sql_param_input,sql_c_char, sql-char,car_name_len,0,car_name,0,&cbcar_name);ret=sqlbindparameter(serverhstmt,3,sql_param_input,sql_c_char, sql-char,2,0,department_name,0,&cbdepartment_name);ret=sqlbindparameter(serverhstmt,4,sql_param_inp
24、ut,sql_c_float, sql-float,0,0,price,0,&cbprice);ret=sqlbindparameter(serverhstmt,5,sql_param_input,sql_c_boolean, sql-boolean,0,status,0,&cbstatus); /*查詢車輛信息的執(zhí)行sql語句*/ret=sqlexecdirect(kinghstmt,"select * from 車輛",sql_nts);if (ret=sql_success ret=sql_success_with_info)ret=sqlbindco
25、l(kingghstmt,1,sql_c_char,car_no,car_no_len,&cbcar_no);ret=sqlbindcol(kingghstmt,2,sql_c_char,car_name,car_name_len,cbcar_name);ret=sqlbindcol(kingghstmt,3,sql_c_char,department_name,&cbdepartment_name);ret=sqlbindcol(kingghstmt,4,sql_c_float,price,0,&cbprice);ret=sqlbindcol(kingghstmt,5
26、,sql_c_char,status,status_len,&cbstatus); /* step 6:兩種方式的語句 */*預(yù)編譯客戶基本表帶有參數(shù)的語句 */ret=sqlprepare(serverhstmt,"insert into student (c_no,user_name,user_sex,user_age,user_tel,unit)values (?,?,?,?)",sql_nts);if (ret=sql_success ret=sql_success_with_info)ret=sqlbindparameter(serverhstmt,1,s
27、ql_param_input,sql_c_char, sql-char,c_no_len,0,c_no,0,&cbc_no);ret=sqlbindparameter(serverhstmt,2,sql_param_input,sql_c_char, sql-char,user_name_len,0,user_name,0,&cbuser_name);ret=sqlbindparameter(serverhstmt,3,sql_param_input,sql_c_char, sql-char,2,0,user_sex,0,&cbuser_sex);ret=sqlbind
28、parameter(serverhstmt,4,sql_param_input,sql_c_int, sql-int,0,0,user_age,0,&cbuser_age);ret=sqlbindparameter(serverhstmt,5,sql_param_input,sql_c_int, sql-int,user_tel_len,0,user_tel,0,&cbuser_tel);ret=sqlbindparameter(serverhstmt,6,sql_param_input,sql_c_char, sql-char,unit_len,0,unit,0,&c
29、bunit); /*查詢客戶信息執(zhí)行sql語句*/ret=sqlexecdirect(kinghstmt,"select * from 客戶",sql_nts);if (ret=sql_success ret=sql_success_with_info)ret=sqlbindcol(kingghstmt,1,sql_c_char,sc_no,c_no_len,&cbc_no);ret=sqlbindcol(kingghstmt,2,sql_c_char,user_name,user_name_len,cbuser_name);ret=sqlbindcol(kingg
30、hstmt,3,sql_c_char,suser_sex,&cbuser_sex);ret=sqlbindcol(kingghstmt,4,sql_c_int,suser_age,user_age_len,&cbuser_age);ret=sqlbindcol(kingghstmt,5,sql_c_int,suser_tel,user_tel,&cbuser_tel);ret=sqlbindcol(kingghstmt,6,sql_c_char,sunit,user_tel,&cbunit); /* step 7:處理結(jié)果集并執(zhí)行預(yù)編譯后的語句 */while
31、( (ret=fetch(kinghstmt) ) !=sql_no_data_found) if(ret=sql_error) prinf("fetch errorn"); else ret=sql_execute(serverhstmt); /* step 8中止處理 */sqlfreehandle(sql_handle_stmt,kinghstmt);sqldisconnect(kinghdbc);sqlfreehandle(sql_handle_dbc,kinghdbc);sqlfreehandle(sql_handle_env,kinghenv);sqlfreeh
32、andle(sql_handle_stmt,serverhstmt);sqldisconnect(serverhdbc);sqlfreehandle(sql_handle_dbc,serverhdbc);sqlfreehandle(sql_handle_env,serverhenv);return 0; 此次數(shù)據(jù)庫(kù)的一些操作界面如下4.2、數(shù)據(jù)庫(kù)的運(yùn)行和維護(hù)1. 數(shù)據(jù)庫(kù)的轉(zhuǎn)儲(chǔ)和回復(fù)數(shù)據(jù)庫(kù)的轉(zhuǎn)儲(chǔ)和回復(fù)是系統(tǒng)系統(tǒng)正式運(yùn)行之后最重要的維護(hù)工作之一。2.數(shù)據(jù)庫(kù)的安全性,完整性的控制在數(shù)據(jù)庫(kù)的運(yùn)行過程中,由于應(yīng)用環(huán)境的變化,對(duì)安全性的要求也會(huì)發(fā)生變化,比如有的數(shù)據(jù)原來是機(jī)密的,現(xiàn)在可以是公開查詢的了,而
33、新加入的數(shù)據(jù)又可能機(jī)密的了。3.數(shù)據(jù)庫(kù)性能的監(jiān)督,分析和改造在數(shù)據(jù)庫(kù)的運(yùn)行過程中,監(jiān)督系統(tǒng)運(yùn)行,對(duì)檢測(cè)數(shù)據(jù)進(jìn)行分析,找出改進(jìn)系統(tǒng)性能的方法是dba的又一重要任務(wù)。4.數(shù)據(jù)庫(kù)的重組織與重構(gòu)造數(shù)據(jù)庫(kù)運(yùn)行一段時(shí)間后,由于記錄不斷增,刪,改,會(huì)使數(shù)據(jù)庫(kù)的物理存儲(chǔ)情況變壞,降低了數(shù)據(jù)的存取效率,數(shù)據(jù)庫(kù)的性能下降,這時(shí)dba就要對(duì)數(shù)據(jù)庫(kù)進(jìn)行重組織或部分重組織。5.1參考資料姚卿達(dá),數(shù)據(jù)庫(kù)設(shè)計(jì).北京:高等教育出版社,1987yao s b(ed.).數(shù)據(jù)庫(kù)設(shè)計(jì)1。羅大衛(wèi),劉化名譯。計(jì)算機(jī)工程與應(yīng)用,第七期,1985王珊,薩師煊編著.數(shù)據(jù)庫(kù)系統(tǒng)概論(第四版)北京:高等教育出版社,2006.5張海藩著.軟件工程
34、導(dǎo)論(第四版).北京:清華大學(xué)出版社,2003王珊,薩師煊.數(shù)據(jù)庫(kù)設(shè)計(jì)理論和實(shí)踐.計(jì)算機(jī)應(yīng)用與軟件。vol.2,no.4,1984emloyment tribunals sort out disagreements between employers and employees. you may need to make a claim to an employment tribunal if: you don't agree with the disciplinary action your employer has taken against you your employer d
35、ismisses you and you think that you have been dismissed unfairly. for more informu, take advice from one of the organisations listed under further help. employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath
36、or affirmation. most people find making a claim to an employment tribunal challenging. if you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the organisations listed under further help. ation about dismissal and unfair dismissal, see
37、160;dismissal. you can make a claim to an employment tribunal, even if you haven't appealed against the disciplinary action your employer has taken against you. however, if you win your case, the tribunal may reduce any compensation awarded to you as a result of your failure to appeal.
38、 remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are complaining about happened. if your application is received after this time limit, the tribunal will not usually accept i. if you are worried about how the time
39、limits apply to you if you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your compensation if you win the case. this is known as a damages-based agreement. in england and wales, your solicitor can't charge you more
40、 than 35% of your compensation if you win the case.you're clear about the terms of the agreement. it might be best to get advice from an experienced adviser, for example, at a citizens advice bureau. to find your nearest cab, including those that give advice by e-mail, click on
41、nearest cab.for more information about making a claim to an employment tribunal, see employment tribunals.the (lack of) air up there watch m cay man islands-based webb, the head of fifa's anti-racism taskforce, is in london for the football association's 150th anniversary celebrations a
42、nd will attend city's premier league match at chelsea on sunday."i am going to be at the match tomorrow and i have asked to meet ya ya toure," he told bbc sport."for me it's about how he felt and i would like to speak to him first to find out what his experience was."uefa
43、 has opened disciplinary proceedings against cska for the "racist behaviour of their fans" during city's 2-1 win.michel platini, president of european football's governing body, has also ordered an immediate investigation into the referee's actions.cska said they
44、 were "surprised and disappointed" by toure's complaint. in a statement the russian side added: "we found no racist insults from fans of cska."age has reached the end of the beginning of a word. may be guilty in his seems to passing a lot of different life became the appearan
45、ce of the same day; may be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. always feel oneself should go to do something, or write something. twenty years of life trajectory deeply shallow, suddenly feel somethin
46、g, do it.一字開頭的年齡已經(jīng)到了尾聲?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個(gè)不同的日子過成了同一天的樣子;或許是追溯過去,對(duì)自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。總覺得自己似乎應(yīng)該去做點(diǎn)什么,或者寫點(diǎn)什么。二十年的人生軌跡深深淺淺,突然就感覺到有些事情,非做不可了。the end of our life, and can meet many things really do?而窮盡我們的一生,又能遇到多少事情是真正地非做不可?during my childhood, think lucky money and new clothes are n
47、ecessary for new year, but as the advance of the age, will be more and more found that those things are optional; junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn't really
48、grow up, it seems is not so important; then in high school, think don't want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profuse
49、ly, looked at his thrown a basketball hoops, suddenly found himself has already can't remember his appearance.童年時(shí),覺得壓歲錢和新衣服是過年必備,但是隨著年齡的推進(jìn),會(huì)越來越發(fā)現(xiàn),那些東西根本就可有可無;初中時(shí),以為要有一場(chǎng)暗戀才意味著真正的成長(zhǎng),但三年過去后,自己心平氣和的寫同學(xué)錄的時(shí)候,突然就發(fā)現(xiàn)是不是真正的成長(zhǎng)了,好像并沒有那么重要了;然后到了高中,覺得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個(gè)句點(diǎn),但畢業(yè)晚會(huì)的時(shí)候最終還是被梗塞在了咽喉,后來再次站在他曾經(jīng)
50、揮汗如雨的球場(chǎng),看著他投過籃球的球框時(shí),突然間發(fā)現(xiàn)自己已經(jīng)想不起他的容顏。originally, this world, can produce a chemical reaction to an event, in addition to resolutely, have to do, and time.原來,這個(gè)世界上,對(duì)某個(gè)事件能產(chǎn)生化學(xué)反應(yīng)的,除了非做不可的堅(jiān)決,還有,時(shí)間。a person's time, your ideas are always special to clear. want, want, line is clear, as if nothing could
51、 shake his. also once seemed to be determined to do something, but more often is he backed out at last. dislike his cowardice, finally found that there are a lot of love, there are a lot of miss, like shadow really have been doomed. those who do, just green years oneself give oneself an arm injectio
52、n, or is a self-righteous spiritual.一個(gè)人的時(shí)候,自己的想法總是特別地清晰。想要的,不想要的,界限明確,好像沒有什么可以撼動(dòng)自己。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時(shí)候是最后又打起了退堂鼓。嫌惡過自己的怯懦,最終卻發(fā)現(xiàn)有很多緣分,有很多錯(cuò)過,好像冥冥之中真的已經(jīng)注定。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強(qiáng)心劑,或者說,是自以為是的精神寄托罷了。at the moment, the sky is dark, the air is fresh factor after just rained. suddenly thought o
53、f blue plaid shirt; those were broken into various shapes of stationery; from the corner at the beginning of deep friendship; have declared the end of the encounter that haven't start planning. those years, those days of do, finally, like youth, will end in our life.此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。突然想到那件藍(lán)格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場(chǎng)還沒有開始就宣告了終結(jié)的邂逅計(jì)劃那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。baumgartner the disappointing news: mission aborted. r plays an important role in this mission. starting at the ground,
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 剪紙課題立項(xiàng)申報(bào)書
- 事故車交易合同范本
- 上海嘉善房屋出租合同范本
- 高中課題申報(bào)書
- 課題申報(bào)書亮點(diǎn)
- 臨時(shí)用工勞務(wù)合同范本 三
- 勞務(wù)拆遷采購(gòu)合同范本
- 合同范本 材料價(jià)差調(diào)整
- 勞務(wù)公司包工合同范本
- 與中介簽買房合同范本
- 2022年江蘇省錄用公務(wù)員筆試《公安專業(yè)科目》試題(網(wǎng)友回憶版)
- 光伏電站螺旋地樁承載力計(jì)算軟件
- 醫(yī)用耗材配送服務(wù)方案
- 風(fēng)力發(fā)電場(chǎng)建設(shè)項(xiàng)目初步(概要)設(shè)計(jì)
- 中職統(tǒng)編《金屬材料與熱處理》系列課件 第3章 鐵碳合金(動(dòng)畫) 云天系列課件
- 新蘇教版六年級(jí)科學(xué)下冊(cè)全冊(cè)知識(shí)點(diǎn)
- QC成果勁鋼混凝土結(jié)構(gòu)鋼骨柱梁安裝質(zhì)量控制
- 國(guó)家公務(wù)員考試準(zhǔn)考證模板
- 緒論歷史地理學(xué)
- 中小學(xué)教師學(xué)生心理健康教育及案例
- 2024年四川省綿陽(yáng)市中考物理試題 2024年綿陽(yáng)中考分?jǐn)?shù)線
評(píng)論
0/150
提交評(píng)論