個(gè)人博客需求分析(含流程圖、ER圖、存儲(chǔ)過程)_第1頁
個(gè)人博客需求分析(含流程圖、ER圖、存儲(chǔ)過程)_第2頁
個(gè)人博客需求分析(含流程圖、ER圖、存儲(chǔ)過程)_第3頁
個(gè)人博客需求分析(含流程圖、ER圖、存儲(chǔ)過程)_第4頁
個(gè)人博客需求分析(含流程圖、ER圖、存儲(chǔ)過程)_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、個(gè)人博客需求分析含有Oracle數(shù)據(jù)庫主要存儲(chǔ)過程語句一 需求分析該系統(tǒng)為個(gè)人博客,具有一般博客系統(tǒng)的功能。博主,即管理員,擁有最高權(quán)限,能對(duì)文章,分類,評(píng)論,用戶等進(jìn)行管理。游客只能瀏覽前臺(tái)頁面,及瀏覽文章。只有游客注冊(cè)成為注冊(cè)用戶后,才能對(duì)文章進(jìn)行評(píng)論。根據(jù)以上需求分析,該系統(tǒng)要實(shí)現(xiàn)的主要功能為:前臺(tái)顯示文章部分顯示最新的前幾篇文章顯示所有文章分類按分類顯示其下的所有文章文章詳細(xì)信息瀏覽閱讀游客注冊(cè)以及注汽冊(cè)用戶的登錄評(píng)論文章功能汽 后臺(tái)管理部分 汽登錄驗(yàn)證,只有汽博主能登錄綸添加、編輯、刪除文章綸功能 用綸戶、類別、評(píng)論的管理功能綸編輯刪除類別添加類別刪除通文章編輯文章用戶管理修改歲密碼

2、添加文章信息管理文章歲管理類別管理刪除評(píng)論閱讀歲文章瀏覽首頁閱讀文章瀏覽歲首頁評(píng)論文章博客系統(tǒng)游且客注冊(cè)用戶博主系統(tǒng)功能模且塊圖二、數(shù)據(jù)庫設(shè)計(jì)2.1且、E-R圖文章注冊(cè)用戶游天客博主評(píng)論類別分類發(fā)表管啟理管理閱讀包含管理11n啟n1111nn1nn11啟n總E-R圖2.2、表結(jié)妮構(gòu)設(shè)計(jì)用戶信息表 use妮rinfo文章信息表 A妮rticles文章分類表妮Tags評(píng)論信息表 C妮omments三博客系李統(tǒng)的性能需求該系統(tǒng)在性能李功能上應(yīng)達(dá)到如下需求:李操作簡單、界面友好:李完全控件式的頁面布局,使朽得文章的錄入工作更簡便,朽許多選項(xiàng)只需要點(diǎn)擊鼠標(biāo)就朽可以完成;另外,跟蹤出現(xiàn)朽的提示信息也讓用戶

3、隨時(shí)清朽楚自己的操作情況。對(duì)常見朽網(wǎng)站的博客管理的各個(gè)方面噓:上傳博客、瀏覽、刪除、訊修改等方面都大體實(shí)現(xiàn),實(shí)訊現(xiàn)了網(wǎng)站對(duì)即時(shí)文章的管理蚜要求; 即時(shí)可洲見:對(duì)文章的處理(包括添洲加、編輯、刪除)將立即在洲主頁的對(duì)應(yīng)欄目顯示出來,洲達(dá)到“即時(shí)發(fā)布、即時(shí)見效洲”的功能; 系統(tǒng)運(yùn)行應(yīng)盈該快速、穩(wěn)定、高效和可靠盈; 在結(jié)構(gòu)上應(yīng)具有很好盈的可擴(kuò)展性,便于將來的功盈能擴(kuò)展和維護(hù)。四 系統(tǒng)盈結(jié)構(gòu)實(shí)現(xiàn)過程開始退出是否在登錄是否管理文章是否是博在主是否管理用戶是否管理評(píng)浙論是否管理類型登錄評(píng)論文浙章瀏覽文章是是是是否否否浙文章管理類型管理評(píng)論管理浙用戶管理是是否否系統(tǒng)流程迂圖整個(gè)系統(tǒng)的工作流程為:迂打開該系統(tǒng)

4、網(wǎng)站,游客能瀏迂覽、閱讀文章,能進(jìn)行注冊(cè)迂,注冊(cè)后成為注冊(cè)用戶,注迂冊(cè)用戶登錄后能夠?qū)ξ恼逻M(jìn)迂行評(píng)論。博主從后臺(tái)入口登迂錄,可以添加文章,包括文迂章標(biāo)題、類別、內(nèi)容;還能瑤對(duì)用戶、文章、類別、評(píng)論瑤進(jìn)行管理。數(shù)據(jù)庫中主要O瑤racle操作語句-A瑤DDARTICLEcre瑤ate or repla瑤ce procedure瑤addarticle(瑤title in art映icles.a_titl映e%type,conte映nt in articl映es.a_content映%type,tagnam映e in article映s.t_name%typ映e,commentnum映in artic

5、les這.a_commentnu這m%type defau這lt 0,viewnum這in articles這.a_viewnum%t這ype default這0)asbeginins這ert into art爺icles ( a_ti爺tle, a_conte爺nt, t_name,爺a_publishedt爺ime, a_comme爺ntnum, a_vie癥wnum)values(癥title, conte癥nt, tagname,癥 sysdate, co癥mmentnum, vi延ewnum);end a延ddarticle;-延ADDCOMMENTcr延eate or repl延a

6、ce procedur延e addcomment延(aid in comm延ents.a_id%ty延pe,c_content延in comments延.c_comment%t延ype,cname in延comments.c_延username%typ延e)as beginin延sert into co蘸mments (a_id蘸, c_comment,蘸 c_username,蘸 c_leavetime蘸)values (aid蘸, c_content,洲 cname, sysd洲ate);end add洲comment;-AD洲D(zhuǎn)TAGcreate o洲r(nóng) replace pr洲ocedu

7、re addt洲ag(tagname i選n tags.t_nam選e%type)asbeg選ininsert int選o tags(t_nam選e) values (t選agname);end選addtag;-ADD苛USERScreate苛or replace p苛rocedure add苛users(v_name苛in varchar2苛,v_password概in varchar2,概v_type in us概erinfo.usert概ype%type def概ault 0)asbeg概ininsert int概o userinfo(u絆sername,user絆password,us

8、e菱rtype)values菱(v_name,v_p菱assword,v_ty菱pe);end addu菱sers;-CHECK菱ADMINcreate女or replace p女rocedure che女ckadmin(v_us女ername in va女rchar2,v_pas女sword in var女char2,result女out number)梁isl_count nu梁mber;beginse梁lect count(*梁) into l_cou梁nt from user梁infowhere US梁ERNAME = v_u梁sername and鄉(xiāng)USERPASSWORD鄉(xiāng) = v

9、_passwor鄉(xiāng)d and userty鄉(xiāng)pe = 1;if l_鄉(xiāng)count=0 then鄉(xiāng)result:=-1;e鄉(xiāng)lseresult:=1鰓;end if;end鰓checkadmin;-鰓-CHECKUSERSc鰓reate or rep鰓lace procedu鰓re checkuser鰓s(v_username鰓in varchar2溯,v_password溯in varchar2,溯result out n溯umber)isl_co溯unt number;b溯eginselect c溯ount(*) into溯l_count fro雪m userinfowh雪ere USERN

10、AME雪 = v_usernam雪e and USERPA雪SSWORD = v_p雪assword and雪usertype=0;i憶f l_count=0憶thenresult:=憶-1;elseresul憶t:=1;end if;憶end checkuse憶rs;-DELETEA憶RTICLEcreate虛or replace虛procedure de虛letearticle(虛id_in in num虛ber)asbegind虛elete from a虛rticles wher虛e a_id=id_in選;end deletea選rticle;-DEL選ETECOMMENTcr選eat

11、e or repl選ace procedur選e deletecomm選ent(id_in in選number)asbe銥gindelete fr銥om comments銥where c_id=i銥d_in;end del銥etecomment;-銥-DELETETAGcr銥eate or repl銥ace procedur癥e deletetag(癥tagname in t癥ags.t_name%t虛ype)asbegind虛elete from t虛ags where t_虛name=tagname虛;end deletet虛ag;-DELETEU虛SERcreate or墟replace

12、 pro墟cedure delet墟euser(id_in墟in number) a墟sbegindelete墟from userin墟fo where use墟rid=id_in;en墟d deleteuser玉;-selectart玉iclecreate o玉r replace pr玉ocedure sele玉ctarticle(cu玉r out articl玉e_type.cur_t玉ype)isbegino幼pen cur fors幼elect * from幼articles;en幼d;-selectco幼mmentcreate幼o(hù)r replace p幼rocedure sel幼ec

13、tcomment(a再id in commen再ts.a_id%type再,cur out com再ment_type.cu再r_type)isbeg再inopen cur f再orselect * f軸rom comments軸where a_id=軸aid;end;-se軸lecttagcreat軸e or replace軸procedure s軸electtag(cur軸out tag_typ軸e.cur_type)i徐sbeginopen c徐ur forselect徐* from tags徐;end;-updat徐earticlecrea徐te or replac徐e procedu

14、re逾updatearticl逾e(id_in numb逾er,title in逾articles.a_t逾itle%type,co逾ntent in art逾icles.a_cont逾ent%type,tag逾name in arti迂cles.t_name%迂type)asbegin迂update artic迂les set a_ti迂tle = title,于 a_content =蘊(yùn) content , t蘊(yùn)_name = tagn蘊(yùn)ame where a_蘊(yùn)id = id_in;e蘊(yùn)nd updateart蘊(yùn)icle;-updat硯epwdcreate o硯r replace pr硯ocedure upda硯tepwd(u_pass硯word in user硯info.userpas硯sword%type)a硯sbeginupdate峙userinfo s

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論