Search Header Logo

SQL-5-update-delete

Authored by 邱建誌 邱建誌

Computers

11th Grade

Used 8+ times

SQL-5-update-delete
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

要將資料更新,其指令為?

update 表名 set 欄位1='值1' where 條件

update 表名 by 欄位1='值1' where 條件

update 表名 set 欄位1 to '值1' where 條件

setup 表名 set 欄位1='值1' where 條件

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

資料表user有帳號欄位id,密碼欄位pd

想將帳號為kmsh的密碼更新為1234,

則指令為?

update user set pd='1234' where id='kmsh'

update pd='1234' where id='kmsh'

update user set pd=1234 where id=kmsh

update user set pd='1234' when id='kmsh'

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

資料表user有帳號欄位id、密碼pd,生日年birthy

若想將帳號id為km的密碼及生日年,

分別更新成109及112,則SQL指令為?

update user set pd='109', birthy='112' where id='km'

update user set pd='112', birthy='109' where id='km'

update user set pd=109, birthy=112 where id=km

update user set pd='109' birthy='112' where id='km'

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

若有資料表user如圖,

下完指令

update user set addr='台南'

台北1人

台中1人

台南2人

台北0人

台中0人

台南2人

台北0人

台中0人

台南4人

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

若已有資料表user,包含有全國2300萬人的

身份證欄位id,銀行帳號bankid,銀行餘額money

則,若要一口氣發放6000元獎金至所有人,

則指令為?

update user set money=money+6000 where all

update user set money=money+6000

update user set money=6000

update user set money+6000

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

有資料表user,

有身份證欄位id、姓名欄位name

若想刪除id為A123的人,則指令為?

delete from user where id='A123'

delete id='A123'

delete user where id='A123'

delete from user set where id='A123'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

若有資料表user如圖,指令

delete from user where money >=500

會刪除幾個人?

1人

2人

3人

全部刪

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?