單項(xiàng)選擇題TRUNCATE TABLE 和 DELETE TABLE的區(qū)別是()

A.TRUNCATE TABLE 刪除數(shù)據(jù)后可以恢復(fù),而DELETE 不可以恢復(fù)
B.TRUNCATE TABLE 刪除數(shù)據(jù)后不可以恢復(fù),而DELETE 可以恢復(fù)
C.兩者刪除數(shù)據(jù)過(guò)后都可以恢復(fù)
D.兩者刪除數(shù)據(jù)后都不可以恢復(fù)


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題從authors 數(shù)據(jù)庫(kù)中查詢出所有au_id滿足前2個(gè)字符為”72”,第四個(gè)字符為”-“的作家的姓名,下面哪一條語(yǔ)句滿足條件()

A.select * from authors where au_id =”72_-%”
B.select au_id=72_-% from authors
C.select * from authors where au_id like “72*-%”
D.select * from authors where au_id like “72_-%” _代表任意一個(gè)字符

2.單項(xiàng)選擇題下面哪一條語(yǔ)句實(shí)現(xiàn)了下列功能:在authors數(shù)據(jù)庫(kù)中查找所有姓名以d 打頭的作家()

A. select * from authors where au_name=”d”
B. select “d” from authors
C. select * from authors where au_name like “d%”
D. select au_name like “d%” from authors

3.單項(xiàng)選擇題select au_id from authors where price<$15 or price >$ 20.下面哪一條語(yǔ)句與這一條語(yǔ)句執(zhí)行效果相同()

A. select au_id from authors where price IN($15,:$20);
B. select au_id from authors where price between $15 and $20
C. select au_id from authors where price not between $15 and $20
D. select au_id from authors where price not IN($15,$20);

4.單項(xiàng)選擇題select au_id from authors where state=”ca” or state=”ks”.下面哪一條語(yǔ)句與這一條語(yǔ)句執(zhí)行效果相同()

A. select au_id from authors where state IN(“ac”,:”sk”);
B. select au_id from authors where state between ac and sk
C. select au_id from authors where state not between ca and ks
D. select au_id from authors where state IN(“ca”,:”ks”);

5.單項(xiàng)選擇題SQL SERVER 2000中,可以用下面哪一條語(yǔ)句把a(bǔ)uthors表重命名為表student()

A.sp_renamedb authors student
B.sp_rename  authors  student
C.sp_renamedata authors student
D.sp_renameview authors student

最新試題

MySQL數(shù)據(jù)庫(kù)中,通常將用戶寫(xiě)入對(duì)應(yīng)的權(quán)限表來(lái)控制訪問(wèn)權(quán)限的,以下屬于用戶權(quán)限得選項(xiàng)()

題型:多項(xiàng)選擇題

在MySQL中,用單條INSERT語(yǔ)句處理多個(gè)插入要比使用多條INSERT語(yǔ)句效率更高。

題型:判斷題

存儲(chǔ)過(guò)程命名規(guī)則與數(shù)據(jù)庫(kù)、數(shù)據(jù)表、列等標(biāo)識(shí)符命名可以隨心所欲,不需要規(guī)則一致。

題型:判斷題

out模式定義的參數(shù)只能在過(guò)程體內(nèi)部賦值,表示該參數(shù)可以將某個(gè)值傳遞回調(diào)用他的過(guò)程。

題型:判斷題

在insert語(yǔ)句中可以嵌入子查詢,通過(guò)子查詢將來(lái)自其他數(shù)據(jù)表的數(shù)據(jù)批量插入到所需的數(shù)據(jù)表中。

題型:判斷題

MySQL變量可分為兩大類,即()

題型:多項(xiàng)選擇題

在實(shí)際應(yīng)用中,為了防止新建視圖與已存在的視圖重名產(chǎn)生沖突,常用CREATE OR REPLACE VIEW來(lái)創(chuàng)建新視圖。

題型:判斷題

/*……*/用來(lái)標(biāo)記程序的注釋部分,注釋的目的是增加程序的可讀性,其中的內(nèi)容不會(huì)被執(zhí)行。

題型:判斷題

以下分支結(jié)構(gòu)控制語(yǔ)句正確的是()

題型:?jiǎn)雾?xiàng)選擇題

在定義數(shù)據(jù)表結(jié)構(gòu)的時(shí)候,設(shè)置數(shù)據(jù)表之間的存在關(guān)系為“級(jí)聯(lián)更新”,會(huì)為保證數(shù)據(jù)一致性帶來(lái)方便,但也存在“一改全改”的數(shù)據(jù)變化風(fēng)險(xiǎn)。

題型:判斷題