午夜精品久久久久久久99老熟妇,天堂中文www官网,未满十八18勿进黄网站,太粗太深了太紧太爽了,天天爽夜夜爽夜夜爽

考試報(bào)名
考試報(bào)名
考試內(nèi)容
考試大綱
在線(xiàn)客服
返回頂部

備考刷題,請(qǐng)到

CDA認(rèn)證小程序

The table "t1" has three columns: "id," "name," and "salary." If "t1" represents a forum's posting information table, where "id" is the poster's ID, "name" is the post's title, and "salary" is the score awarded for each post on the forum. The statement that represents updating the content of fields in the "t1" table is:
A. create table t1(id int, name char(30), salary int);
B. drop table t1;
C. create view v_t1 as select id, name from t1;
D. update t1 set name='lixiaoming' where id=100;
上一題
下一題
收藏
點(diǎn)贊
評(píng)論
題目解析
題目評(píng)論(0)

The UPDATE...SET... statement is used to modify the content of fields in a table.

正確答案是:D: update t1 set name='lixiaoming' where id=100;

專(zhuān)業(yè)分析如下:

A: `create table t1(id int, name char(30), salary int);` 這個(gè)語(yǔ)句是用來(lái)創(chuàng)建一個(gè)名為 `t1` 的表,包含三個(gè)字段:`id`, `name`, 和 `salary`。它并不是用來(lái)更新表中字段內(nèi)容的,因此不正確。

B: `drop table t1;` 這個(gè)語(yǔ)句是用來(lái)刪除表 `t1`,它會(huì)直接刪除整個(gè)表及其數(shù)據(jù),也不是用來(lái)更新表中字段內(nèi)容的,因此不正確。

C: `create view v_t1 as select id, name from t1;` 這個(gè)語(yǔ)句是用來(lái)創(chuàng)建一個(gè)名為 `v_t1` 的視圖,視圖是基于表 `t1` 的 `id` 和 `name` 字段的一個(gè)虛擬表。它同樣不是用來(lái)更新表中字段內(nèi)容的,因此不正確。

D: `update t1 set name='lixiaoming' where id=100;` 這個(gè)語(yǔ)句是用來(lái)更新表 `t1` 中的記錄的。具體來(lái)說(shuō),它將 `id` 為 `100` 的那條記錄的 `name` 字段更新為 `lixiaoming`。這個(gè)語(yǔ)句正是用來(lái)更新表中字段內(nèi)容的,因此是正確的。

綜上所述,選項(xiàng) D 是正確的答案。