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

正文內(nèi)容

mysql學(xué)習(xí)手冊(文件)

2025-07-13 22:13 上一頁面

下一頁面
 

【正文】 除新增記錄 l 實(shí)驗(yàn)步驟:如下所示,依次執(zhí)行以下語句:252。 查看課程中記錄變化mysql insert into curricula values(39。)。Query OK, 1 row affected ( sec)mysql select * from curricula。 查詢學(xué)生基本信息表中記錄數(shù)。mysql Select nub,class from std_info where name=39。 查詢學(xué)生基本信息表中各班男生,女生人數(shù),按照班級和性別分組mysql select class,sex,count(*) from std_info group by class,sex。 from std_info a,score_info b,curricula c where = and = and =39。++| 平均分 |++| |++1 row in set ( sec)學(xué)生基本信息表和成績表通過學(xué)號字段聯(lián)合,成績表和課程表通過課程代碼聯(lián)合。最常用的聚合函數(shù):count,avg,min,max。 order by desc。,min(score) as 39。 and =39。 查看臨時(shí)表結(jié)構(gòu)252。//查看表中字段信息+++++++| Field | Type | Null | Key | Default | Extra |+++++++| a | char(1) | YES | | NULL | |+++++++1 row in set ( sec)mysql drop table test。 doesn39。 增加一個(gè)字段addr varchar(40) not null252。Query OK, 0 rows affected ( sec)Records: 0 Duplicates: 0 Warnings: 0mysql desc film。 查看修改效果mysql desc film。 查看表結(jié)構(gòu)252。Query OK, 0 rows affected ( sec)Records: 0 Duplicates: 0 Warnings: 0mysql desc film。 查看效果mysql desc film。即從開始菜單點(diǎn)擊運(yùn)行,輸入cmd,cd到mysql安裝目錄下的bin目錄下執(zhí)行。 linesterminatedby=\r\n stud 執(zhí)行效果:導(dǎo)入的txt文件時(shí),必須原來的數(shù)據(jù)庫是存在,且數(shù)據(jù)庫名稱與導(dǎo)入txt文件的名稱一樣。mysqluse test。記錄之間分隔符39。infileintoterminated39。load data local infile 39。 LINES terminated by 39。39。,39。39。 即:1行1條記錄。\n39。 表示,39。 into table detail fields terminated by 39。terminated39。detaild:\39。data分隔符39。Mysql安裝目錄下的bin目錄下,mysql –u root –p ,進(jìn)入mysql,use stud數(shù)據(jù)庫,使用source命令,導(dǎo)入數(shù)據(jù)。Mysqldump –u root –p stud 導(dǎo)出命令 用戶名 數(shù)據(jù)庫名稱 備份名稱2. mysqlimport命令在mysql安裝目錄下的data目錄下的stud目錄下, ,即導(dǎo)入文本文件需要放在data/數(shù)據(jù)庫名目錄下面。Query OK, 0 rows affected ( sec)Records: 0 Duplicates: 0 Warnings: 0mysql desc film。 查看表結(jié)構(gòu)252。 查看修改效果mysql desc film。Query OK, 0 rows affected ( sec)Records: 0 Duplicates: 0 Warnings: 0mysql desc film。 查看表結(jié)構(gòu)252。Query OK, 0 rows affected ( sec)mysql desc film。 創(chuàng)建一個(gè)表252。ERROR 1146 (42S02): Table 39。 再次查看臨時(shí)表mysql create table test( a char(1))。+++| 最高分 | 最低分 |+++| | |+++1 row in set ( sec)第十四節(jié) 實(shí)驗(yàn)十四 刪除表l 實(shí)驗(yàn)?zāi)繕?biāo):學(xué)習(xí)刪除表l 實(shí)驗(yàn)內(nèi)容:創(chuàng)建一個(gè)臨時(shí)表,刪除臨時(shí)表l 實(shí)驗(yàn)步驟:如下所示,依次執(zhí)行以下語句:252。 from std_info a,score_info b,curricula c where = and = and =39。 學(xué)生基本信息表、成績表和課程表聯(lián)合查詢9702班高數(shù)成績,查詢出最高分和最低分mysql select max(score) as 39。 學(xué)生基本信息表、成績表和課程表聯(lián)合查詢vc成績,并按照成績降序排列mysql select ,name,score from std_info a,score_info b, curricula c where = and = and =39。 課程表和成績表通過課程代碼聯(lián)合,按照課程代碼,課程名稱分組,使用avg函數(shù)計(jì)算平均分mysql select ,avg(score) from curricula a,score_Info b where = group by ,。 and =39。 學(xué)生基本信息表、課程表和成績表聯(lián)合,查詢9701班英語平均成績,使用avg函數(shù)計(jì)算平均分mysql select avg() as 39。+++| nub | class |+++| 100002 | 9701 |+++1 row in set ( sec)查詢學(xué)生基本信息表中記錄數(shù)mysql select count(*) from std_info。 倒序descmysql Select * from std_Info order by nub。 查詢學(xué)生基本信息表數(shù)據(jù)并按照學(xué)號排序252。+++| code | Curlum |+++| eg | 英語 || mt | 高數(shù) || vc | vc || sy | 操作系統(tǒng) |+++4 rows in set ( sec)mysql delete from curricula where code=39。,39。 查看課程表中所有記錄252。Query OK, 1 row affected ( sec)Rows matched: 1 Changed: 1 Warnings: 0mysql select * from std_Info where nub=39。 查看更新后的記錄mysql update std_info set name=39。vc39。,60)。Query OK, 1 row affected ( sec)mysql insert into score_info values(39。10000639。,39。mt39。,69)。Query OK, 1 row affected ( sec)mysql insert into score_info values(39。10000439。,39。eg39。,70)。Query OK, 1 row affected ( sec)mysql insert into score_info values(39。10000339。,39。vc39。,74)。Query OK, 1 row affected ( sec)mysql insert into score_info values(39。10000239。,39。mt39。,87)。Query OK, 1 row affected ( sec)成績表mysql insert into score_info values(39。vc39。,39。英語39。)。,39。Query OK, 1 row affected ( sec)mysql insert into std_info values(39。970239。10000539。,39。,39。f39。王芳39。)。,39。Query OK, 1 row affected ( sec)mysql insert into std_info values(39。970139。10000139。第五節(jié) 實(shí)驗(yàn)五 插入記錄l 實(shí)驗(yàn)?zāi)繕?biāo):學(xué)習(xí)如何在表中插入記錄l 實(shí)驗(yàn)內(nèi)容:分布在學(xué)生基本信息表、課程表和成績表中插入記錄l 實(shí)驗(yàn)步驟:如下所示,依次執(zhí)行以下語句:252。(重新開一個(gè)mysql窗口,使用root登陸,給user1用戶賦權(quán)限)mysql grant select,insert,update,delete,create,drop,alter on stud.* to user1localhost identified by user1。std_info39。user139。 增加user1用戶權(quán)限252。課程表:Create table curricula (code char(2), /* 課程代號 */ Curlum varchar(30) /* 課程名稱 */ )。 創(chuàng)建成績表score_infomysqluse stud(選擇數(shù)據(jù)庫)mysql Create table std_info (nub char(10) not null ,/* 學(xué)號 */ name varchar(20), /* 姓名 */ class char(8), /* 班級 */ sex char(1), /* 性別 m:男 f:女 */ primary key(nub))。第三節(jié) 實(shí)驗(yàn)三 創(chuàng)建表l 實(shí)驗(yàn)?zāi)繕?biāo):學(xué)習(xí)創(chuàng)建表l 實(shí)驗(yàn)內(nèi)容:創(chuàng)建學(xué)生基本信息表,課程表,成績表l 實(shí)驗(yàn)步驟:如下所示
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1