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

正文內(nèi)容

mysql學(xué)習(xí)手冊(cè)(參考版)

2025-06-28 22:13本頁(yè)面
  

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