數(shù)據(jù)庫技術(shù)(SQL語言)課件_第1頁
數(shù)據(jù)庫技術(shù)(SQL語言)課件_第2頁
數(shù)據(jù)庫技術(shù)(SQL語言)課件_第3頁
數(shù)據(jù)庫技術(shù)(SQL語言)課件_第4頁
數(shù)據(jù)庫技術(shù)(SQL語言)課件_第5頁
已閱讀5頁,還剩65頁未讀 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

數(shù)據(jù)庫技術(shù)第5講SQL語言

數(shù)據(jù)DBMSClient請求回答SQL語言O(shè)racle8i/9iSQLServer2000PowerBuilderVBDelphiC++Builder數(shù)據(jù)庫技術(shù)第5講SQL語言數(shù)據(jù)DBMSClient1SQLServer2000簡介

2000年2月Microsoft公司發(fā)布了Windows2000操作系統(tǒng)家族。

Windows2000ProfessionalWindows2000ServerWindows2000AdvancedServerWindows2000DatacenterServerSQLServer2000客戶端軟件SQLServer2000個人版SQLServer2000標(biāo)準(zhǔn)版SQLServer2000企業(yè)版SQLServer2000簡介2如何使用SQLServer2000?1、利用企業(yè)管理器(EnterpriseManager)建立數(shù)據(jù)庫、用戶,并且對用戶授權(quán);2、利用查詢分析器(QueryAnalyzer)對SQLServer進行查詢、管理。如何使用SQLServer2000?131、SQL語言概述SQL(StructuredQuerylanguage)語言是1974年由Boyce和Chamberlin提出的。1975年~1979年IBM公司SanJoseResearchLaboratory研制了著名的關(guān)系數(shù)據(jù)庫管理系統(tǒng)原型SystemR,并實現(xiàn)了這種語言。由于它功能豐富、語言簡捷,倍受用戶及計算機工業(yè)界歡迎,被眾多計算機公司和軟件公司所采用。經(jīng)各公司的不斷修改、擴充和完善,SQL語言最終發(fā)展成為關(guān)系數(shù)據(jù)庫的標(biāo)準(zhǔn)語言。1、SQL語言概述41986年10月美國國家標(biāo)準(zhǔn)局(AmericanNationalStandardInstitute,簡稱ANSI)的數(shù)據(jù)庫委員會X3H2批準(zhǔn)了SQL作為關(guān)系數(shù)據(jù)庫語言的美國標(biāo)準(zhǔn)。同年公布了SQL標(biāo)準(zhǔn)文本(簡稱SQL-86)。1987年國際標(biāo)準(zhǔn)化組織(InternationalOrganizationforstandardization,簡稱ISO)也通過了這一標(biāo)準(zhǔn)。此后ANSI不斷修改和完善SQL標(biāo)準(zhǔn),并于1989年公布了SQL-89標(biāo)準(zhǔn)。1992年又公布了SQL-92標(biāo)準(zhǔn)。1999年又公布了SQL-99標(biāo)準(zhǔn)。1986年10月美國國家標(biāo)準(zhǔn)局(Americ5SQL-99是SQL-92的一個超集。許多數(shù)據(jù)庫系統(tǒng)支持SQL-99的新結(jié)構(gòu),但目前還沒有一個數(shù)據(jù)庫系統(tǒng)完全支持SQL-99的所有新結(jié)構(gòu)。實際上甚至目前的數(shù)據(jù)庫系統(tǒng)不能完全支持SQL-92。SQL-99是SQL-92的一個超集。許多數(shù)6自SQL成為國際標(biāo)準(zhǔn)語言以后,各個數(shù)據(jù)庫廠家紛紛推出各自的SQL軟件或與SQL的接口軟件。這就使大多數(shù)數(shù)據(jù)庫系統(tǒng)均用SQL作為共同的數(shù)據(jù)存取語言和標(biāo)準(zhǔn)接口,使不同數(shù)據(jù)庫系統(tǒng)之間的互操作有了共同的基礎(chǔ)。這個意義十分重大。因此,有人把確立SQL為關(guān)系數(shù)據(jù)庫語言標(biāo)準(zhǔn)及其后的發(fā)展稱為是一場革命。自SQL成為國際標(biāo)準(zhǔn)語言以后,各個數(shù)據(jù)庫廠家7SQL成為國際標(biāo)準(zhǔn),對數(shù)據(jù)庫以外的領(lǐng)域也產(chǎn)生了很大影響,有不少軟件產(chǎn)品將SQL語言的數(shù)據(jù)查詢功能與圖形功能、軟件工程工具、軟件開發(fā)工具、人工智能程序結(jié)合起來。SQL已成為數(shù)據(jù)庫領(lǐng)域中一個主流語言。SQL成為國際標(biāo)準(zhǔn),對數(shù)據(jù)庫以外的領(lǐng)域也產(chǎn)生82、SQL語言的特點集DDL、DML、DCL于一體;高度非過程化;面向集合的操作方式;一種語法提供兩種操作方式(交互式、嵌入式)。2、SQL語言的特點9嵌入式SQLSQL是一種強有力的聲明性查詢語言,它在許多情況下比通用編程語言的編碼簡單許多。但是使用通用編程語言(至少具有過程化語言的特性)訪問數(shù)據(jù)庫還是很必要的,原因有二:1、SQL不能表達(dá)所有查詢要求。2、非聲明性的動作(例如,打印一份報告或把一次查詢結(jié)果送到一個圖形用戶界面中)都不能用SQL實現(xiàn)。嵌入式SQL10動態(tài)SQL

SQL的動態(tài)SQL組件允許程序在運行時構(gòu)造、提交SQL查詢。使用動態(tài)SQL,程序可以在運行時以字符串的形式生成SQL查詢。動態(tài)SQL11數(shù)據(jù)類型(SQL-92)char(n):固定長度的字符串。varchar(n):可變長字符串。int:整數(shù)。smallint:小整數(shù)類型。numeric(p,d):定點數(shù),精度p位,小數(shù)點右邊d位。real:浮點數(shù)。doubleprecision:雙精度浮點數(shù)。date:日期(年、月、日)。time:時間(小時、分、秒)。interval:兩個date或time類型數(shù)據(jù)之間的差。數(shù)據(jù)類型(SQL-92)12注意:目前各公司都在自己的DBMS上實現(xiàn)了對SQL語言的支持,但在語言的功能上都根據(jù)實際需要進行了擴充或簡化。特別是,都增加了對過程化語句的支持功能。例如,Oracle所支持的是PL/SQLSQLServer2000支持的是Transact-SQL注意:目前各公司都在自己的DBMS上實現(xiàn)了對SQL語言的支持133、SQL語言的三級模式SQLViewTableTableTableDatafile3、SQL語言的三級模式SQLViewTableTableT144、SQL語言數(shù)據(jù)定義(DDL)CreatetableDroptableCreateViewDropViewCreateIndexDropIndex數(shù)據(jù)操縱(DML)SelectUpdateInsertDelete數(shù)據(jù)控制(DCL)GrantRevoke4、SQL語言15SQL語言舉例createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));insertintoTeachervalues(101,‘李華’,‘講師’,‘計算機’);insertintoTeacher(Tno,Tname,Dept)values(104,'李春生','計算機');SQL語言舉例insertintoTeacher16select*fromteacherwheredept='通信';selectTname,Deptfromteacherwheredept=‘通信’;select*fromteacherwheredept=‘通信’andTitle=‘講師’;updateteachersetdept='通信工程'wheredept='通信';deletefromteacherwheredept='計算機';createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacherupdatete17createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));insertintoCoursevalues(1,101,‘?dāng)?shù)據(jù)庫’,3.5);insertintoCoursevalues(1,103,'數(shù)據(jù)庫',3.5);insertintoCoursevalues(2,102,'網(wǎng)絡(luò)',3);insertintoCoursevalues(2,101,'網(wǎng)絡(luò)',3);insertintoCoursevalues(3,103,‘操作系統(tǒng)’,3);createTableCourse(insertint18selectdistinctcnamefromcourse;select*fromcoursewherecredit>3;select*fromcoursewherecreditbetween2and3;createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));selectdistinctcnamefromcou19select*fromteacherwheredeptin('計算機','自動化');select*fromteacherwheredeptnotin('計算機');select*fromteacherwheretnamelike'李%';select*fromteacherwheretitleisnull;select*fromteacherorderbytnodesc;select*fromteacherorderbytitle;selectcount(*)fromteacher;selectcount(distinctcname)fromcourse;select*fromteacherwherede20數(shù)據(jù)庫技術(shù)第6講SQL語言(二)

數(shù)據(jù)DBMSClient請求回答SQL語言O(shè)racle8i/9iSQLServer2000PowerBuilderVBDelphiC++Builder數(shù)據(jù)庫技術(shù)第6講SQL語言(二)數(shù)據(jù)DBMSCli21createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacher,course;select*fromteacher,coursewhereteacher.tno=course.tno;createTableCourse(createtab22selectcname,creditfromcoursewhereTnoin(selectTnofromTeacherwhereTname='李華');selectcname,creditfromteacher,coursewhere(teacher.tno=course.tno)andTname='李華';查詢李華所授課程的名稱,學(xué)分selectcname,creditfromcours23selectcname,creditfromcoursewhereTnoin(selectTnofromTeacherwhereTitle='講師');selectcname,creditfromteacher,coursewhere(teacher.tno=course.tno)andTitle='講師';selectcname,creditfromcours24視圖(View)createviewv_t_casselectTeacher.Tno,Tname,Title,Dept,Cno,CnamefromTeacher,coursewhereTeacher.Tno=course.Tno;Select*fromv_t_c;Select*fromv_t_cwhereTno=101;視圖(View)25索引createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull);createuniqueindexcourse_indoncourse(Tno,Cno);createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));索引createTableCourse(26Groupby和Having子句createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacher;selecttitle,count(*)fromteachergroupbytitle;selecttitle,count(*)fromteachergroupbytitlehavingcount(*)>1;Groupby和Having子句createtab27認(rèn)識nullinsertintoTeachervalues(903,'劉力偉','助教','計算機');insertintoTeachervalues(904,‘趙鶯’,null,‘計算機’);insertintoTeachervalues(905,'張大軍',null,null);createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));認(rèn)識nullcreatetableTeacher(28外鍵createtablefather_t(Cnointegerprimarykey,Cnamechar(10)notnull,Creditnumeric(3,1));createtableson_t(st_nointegerprimarykey,

fk_cnointeger,gradeinteger,foreignkey(fk_cno)referencesfather_t(Cno));insertintofather_tvalues(1,'數(shù)據(jù)庫',2);insertintofather_tvalues(2,'網(wǎng)絡(luò)',3);insertintoson_tvalues(101,2,86);insertintoson_tvalues(102,5,78);外鍵createtableson_tinsertint29授權(quán)GrantselectonTeachertost2;RevokeselectonTeacherfromst2;授權(quán)30開發(fā)人員用戶數(shù)據(jù)庫系統(tǒng)的權(quán)限D(zhuǎn)BA管理員開發(fā)人員用戶數(shù)據(jù)庫系統(tǒng)的權(quán)限D(zhuǎn)BA管理員31游標(biāo)將SQL語言嵌入到宿主語言中出現(xiàn)的一個問題是失配,因為SQL是對記錄的集合進行操作,而宿主語言不完全支持記錄集合的操作。解決的辦法就是從本質(zhì)上提供一種機制支持從關(guān)系(表)中一次檢索一行。這種機制稱為游標(biāo),任何SQL查詢都可以聲明一個游標(biāo)。聲明游標(biāo)后,就可以打開它,取出下一行,然后移動游標(biāo)。這樣可以通過把游標(biāo)定位在特殊的行,并讀取它的內(nèi)容來檢索表中的行。游標(biāo)32ODBC和JDBC

嵌入式SQL使得SQL與通用編程語言結(jié)合起來。ODBC(opendatabaseconnectivity)和JDBC(Javadatabaseconnectivity)促進了SQL與通用編程語言的集成。應(yīng)用ODBC/JDBCDBMSSQLJavaODBC和JDBC應(yīng)用ODBC/JDBCDBMSSQL33數(shù)據(jù)庫技術(shù)其他關(guān)系語言

數(shù)據(jù)DBMSClient請求回答QBEDatalog數(shù)據(jù)庫技術(shù)其他關(guān)系語言數(shù)據(jù)DBMSClient請求回答QBE34QBE(QuerybyExample)是一種圖形化的語言,它的查詢語句看上去就像是表格,是用“例子”表達(dá)的。QBE和它的變體廣泛應(yīng)用在個人計算機的數(shù)據(jù)庫系統(tǒng)里(例如,Access和Excel)。Datalog的文法以Prolog語言為模型,雖然目前沒有被商業(yè)應(yīng)用,但它已經(jīng)應(yīng)用在許多研究性的數(shù)據(jù)庫系統(tǒng)里(特別是在知識庫系統(tǒng))。QBE(QuerybyExample)35數(shù)據(jù)庫技術(shù)第5講SQL語言

數(shù)據(jù)DBMSClient請求回答SQL語言O(shè)racle8i/9iSQLServer2000PowerBuilderVBDelphiC++Builder數(shù)據(jù)庫技術(shù)第5講SQL語言數(shù)據(jù)DBMSClient36SQLServer2000簡介

2000年2月Microsoft公司發(fā)布了Windows2000操作系統(tǒng)家族。

Windows2000ProfessionalWindows2000ServerWindows2000AdvancedServerWindows2000DatacenterServerSQLServer2000客戶端軟件SQLServer2000個人版SQLServer2000標(biāo)準(zhǔn)版SQLServer2000企業(yè)版SQLServer2000簡介37如何使用SQLServer2000?1、利用企業(yè)管理器(EnterpriseManager)建立數(shù)據(jù)庫、用戶,并且對用戶授權(quán);2、利用查詢分析器(QueryAnalyzer)對SQLServer進行查詢、管理。如何使用SQLServer2000?1381、SQL語言概述SQL(StructuredQuerylanguage)語言是1974年由Boyce和Chamberlin提出的。1975年~1979年IBM公司SanJoseResearchLaboratory研制了著名的關(guān)系數(shù)據(jù)庫管理系統(tǒng)原型SystemR,并實現(xiàn)了這種語言。由于它功能豐富、語言簡捷,倍受用戶及計算機工業(yè)界歡迎,被眾多計算機公司和軟件公司所采用。經(jīng)各公司的不斷修改、擴充和完善,SQL語言最終發(fā)展成為關(guān)系數(shù)據(jù)庫的標(biāo)準(zhǔn)語言。1、SQL語言概述391986年10月美國國家標(biāo)準(zhǔn)局(AmericanNationalStandardInstitute,簡稱ANSI)的數(shù)據(jù)庫委員會X3H2批準(zhǔn)了SQL作為關(guān)系數(shù)據(jù)庫語言的美國標(biāo)準(zhǔn)。同年公布了SQL標(biāo)準(zhǔn)文本(簡稱SQL-86)。1987年國際標(biāo)準(zhǔn)化組織(InternationalOrganizationforstandardization,簡稱ISO)也通過了這一標(biāo)準(zhǔn)。此后ANSI不斷修改和完善SQL標(biāo)準(zhǔn),并于1989年公布了SQL-89標(biāo)準(zhǔn)。1992年又公布了SQL-92標(biāo)準(zhǔn)。1999年又公布了SQL-99標(biāo)準(zhǔn)。1986年10月美國國家標(biāo)準(zhǔn)局(Americ40SQL-99是SQL-92的一個超集。許多數(shù)據(jù)庫系統(tǒng)支持SQL-99的新結(jié)構(gòu),但目前還沒有一個數(shù)據(jù)庫系統(tǒng)完全支持SQL-99的所有新結(jié)構(gòu)。實際上甚至目前的數(shù)據(jù)庫系統(tǒng)不能完全支持SQL-92。SQL-99是SQL-92的一個超集。許多數(shù)41自SQL成為國際標(biāo)準(zhǔn)語言以后,各個數(shù)據(jù)庫廠家紛紛推出各自的SQL軟件或與SQL的接口軟件。這就使大多數(shù)數(shù)據(jù)庫系統(tǒng)均用SQL作為共同的數(shù)據(jù)存取語言和標(biāo)準(zhǔn)接口,使不同數(shù)據(jù)庫系統(tǒng)之間的互操作有了共同的基礎(chǔ)。這個意義十分重大。因此,有人把確立SQL為關(guān)系數(shù)據(jù)庫語言標(biāo)準(zhǔn)及其后的發(fā)展稱為是一場革命。自SQL成為國際標(biāo)準(zhǔn)語言以后,各個數(shù)據(jù)庫廠家42SQL成為國際標(biāo)準(zhǔn),對數(shù)據(jù)庫以外的領(lǐng)域也產(chǎn)生了很大影響,有不少軟件產(chǎn)品將SQL語言的數(shù)據(jù)查詢功能與圖形功能、軟件工程工具、軟件開發(fā)工具、人工智能程序結(jié)合起來。SQL已成為數(shù)據(jù)庫領(lǐng)域中一個主流語言。SQL成為國際標(biāo)準(zhǔn),對數(shù)據(jù)庫以外的領(lǐng)域也產(chǎn)生432、SQL語言的特點集DDL、DML、DCL于一體;高度非過程化;面向集合的操作方式;一種語法提供兩種操作方式(交互式、嵌入式)。2、SQL語言的特點44嵌入式SQLSQL是一種強有力的聲明性查詢語言,它在許多情況下比通用編程語言的編碼簡單許多。但是使用通用編程語言(至少具有過程化語言的特性)訪問數(shù)據(jù)庫還是很必要的,原因有二:1、SQL不能表達(dá)所有查詢要求。2、非聲明性的動作(例如,打印一份報告或把一次查詢結(jié)果送到一個圖形用戶界面中)都不能用SQL實現(xiàn)。嵌入式SQL45動態(tài)SQL

SQL的動態(tài)SQL組件允許程序在運行時構(gòu)造、提交SQL查詢。使用動態(tài)SQL,程序可以在運行時以字符串的形式生成SQL查詢。動態(tài)SQL46數(shù)據(jù)類型(SQL-92)char(n):固定長度的字符串。varchar(n):可變長字符串。int:整數(shù)。smallint:小整數(shù)類型。numeric(p,d):定點數(shù),精度p位,小數(shù)點右邊d位。real:浮點數(shù)。doubleprecision:雙精度浮點數(shù)。date:日期(年、月、日)。time:時間(小時、分、秒)。interval:兩個date或time類型數(shù)據(jù)之間的差。數(shù)據(jù)類型(SQL-92)47注意:目前各公司都在自己的DBMS上實現(xiàn)了對SQL語言的支持,但在語言的功能上都根據(jù)實際需要進行了擴充或簡化。特別是,都增加了對過程化語句的支持功能。例如,Oracle所支持的是PL/SQLSQLServer2000支持的是Transact-SQL注意:目前各公司都在自己的DBMS上實現(xiàn)了對SQL語言的支持483、SQL語言的三級模式SQLViewTableTableTableDatafile3、SQL語言的三級模式SQLViewTableTableT494、SQL語言數(shù)據(jù)定義(DDL)CreatetableDroptableCreateViewDropViewCreateIndexDropIndex數(shù)據(jù)操縱(DML)SelectUpdateInsertDelete數(shù)據(jù)控制(DCL)GrantRevoke4、SQL語言50SQL語言舉例createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));insertintoTeachervalues(101,‘李華’,‘講師’,‘計算機’);insertintoTeacher(Tno,Tname,Dept)values(104,'李春生','計算機');SQL語言舉例insertintoTeacher51select*fromteacherwheredept='通信';selectTname,Deptfromteacherwheredept=‘通信’;select*fromteacherwheredept=‘通信’andTitle=‘講師’;updateteachersetdept='通信工程'wheredept='通信';deletefromteacherwheredept='計算機';createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacherupdatete52createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));insertintoCoursevalues(1,101,‘?dāng)?shù)據(jù)庫’,3.5);insertintoCoursevalues(1,103,'數(shù)據(jù)庫',3.5);insertintoCoursevalues(2,102,'網(wǎng)絡(luò)',3);insertintoCoursevalues(2,101,'網(wǎng)絡(luò)',3);insertintoCoursevalues(3,103,‘操作系統(tǒng)’,3);createTableCourse(insertint53selectdistinctcnamefromcourse;select*fromcoursewherecredit>3;select*fromcoursewherecreditbetween2and3;createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));selectdistinctcnamefromcou54select*fromteacherwheredeptin('計算機','自動化');select*fromteacherwheredeptnotin('計算機');select*fromteacherwheretnamelike'李%';select*fromteacherwheretitleisnull;select*fromteacherorderbytnodesc;select*fromteacherorderbytitle;selectcount(*)fromteacher;selectcount(distinctcname)fromcourse;select*fromteacherwherede55數(shù)據(jù)庫技術(shù)第6講SQL語言(二)

數(shù)據(jù)DBMSClient請求回答SQL語言O(shè)racle8i/9iSQLServer2000PowerBuilderVBDelphiC++Builder數(shù)據(jù)庫技術(shù)第6講SQL語言(二)數(shù)據(jù)DBMSCli56createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacher,course;select*fromteacher,coursewhereteacher.tno=course.tno;createTableCourse(createtab57selectcname,creditfromcoursewhereTnoin(selectTnofromTeacherwhereTname='李華');selectcname,creditfromteacher,coursewhere(teacher.tno=course.tno)andTname='李華';查詢李華所授課程的名稱,學(xué)分selectcname,creditfromcours58selectcname,creditfromcoursewhereTnoin(selectTnofromTeacherwhereTitle='講師');selectcname,creditfromteacher,coursewhere(teacher.tno=course.tno)andTitle='講師';selectcname,creditfromcours59視圖(View)createviewv_t_casselectTeacher.Tno,Tname,Title,Dept,Cno,CnamefromTeacher,coursewhereTeacher.Tno=course.Tno;Select*fromv_t_c;Select*fromv_t_cwhereTno=101;視圖(View)60索引createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull);createuniqueindexcourse_indoncourse(Tno,Cno);createTableCourse(Cnointegernotnull,Tnointegernotnull,Cnamechar(10)notnull,creditnumeric(3,1)notnull,Primarykey(cno,tno));索引createTableCourse(61Groupby和Having子句createtableTeacher(TnointegerPrimaryKey,Tnamechar(6)notnull,Titlechar(6),Deptchar(10));select*fromteacher;selecttitle,count(*)fromteachergroupbytitle;selecttitle,count(*)fromteachergroupbytitlehavingc

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論