Search Header Logo

w05-SQL語言-02

Authored by 邱建誌 邱建誌

Computers

11th Grade

Used 11+ times

w05-SQL語言-02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

資料表、欄位名稱可以用英文、底線、數字當名稱。下列何者是錯誤的?

Aroom

A_room

1room

room1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

若要規定該欄位自動+1,要加上的屬性是?

unsigned

not null

auto_increment

primary key

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

在資料庫中,有關primary key,何者正確?

(A)縮寫是PK

(B)中文是「主鍵」

(C)可以多欄位複合

(D)被當pk的欄位不用加not null

ABCD

ABC

ACD

BCD

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

小明想辦理活動給台南市國小學生參加,報名資料想放資料庫,

已知有欄位姓名、生日、電話,則適合的primary key是?

考慮同姓名、雙胞胎、同生日

(姓名)

(電話)

(姓名,電話)

(姓名,生日)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

st建表指令順序,何者正確?

CREATE TABLE st( )

CREATE st( )

TABLE st( )

TABLE CREATE st( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

國小學生報名資料有姓名name(4中文字)、電話tel(10碼)、生日birth(西元)共3項欄位

已知pk是name+tel,則建表指令為?

CREATE TABLE st(

name char(4) not null,

tel char(10) not null,

birth char(8),

primary key(name,tel)

)

CREATE TABLE st(

name char(4) not null,

tel char(10) not null,

birth char(8),

primary key(name+tel)

)

CREATE TABLE st(

name char(12) not null,

tel char(10) not null,

birth char(8),

primary key(name,tel),

)

CREATE TABLE st(

name char(12) not null,

tel char(10) not null,

birth char(8),

primary key(name,tel)

)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

刪除資料表st的指令,何者正確?

create table st( )

drop st( )

drop table st( )

drop table st

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?