多項(xiàng)選擇題若student表中包含主鍵sudentid,則執(zhí)行語(yǔ)句:update student set studentid=100 where studentid=101,結(jié)果可能是()。

A.錯(cuò)誤提示:主鍵列不能更新。
B.更新了一條數(shù)據(jù)。
C.錯(cuò)誤提示:違反主鍵約束。
D.既不提示錯(cuò)誤,也不更新數(shù)據(jù)。


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題現(xiàn)有書(shū)目表book,包含字段:價(jià)格price(float),類(lèi)別type(char);現(xiàn)在查詢各個(gè)類(lèi)別的平均價(jià)格、類(lèi)別名稱,以下語(yǔ)句正確的是()。

A.select avg(price),type from book group by type
B.select count(price),type from book group by price
C.select avg(price),type from book group by price
D.select count(price),type from book group by type

2.單項(xiàng)選擇題Sql server提供了一些字符串函數(shù),以下說(shuō)法錯(cuò)誤的是()。

A.selec tright(’hello’,3)返回值為:hel
B.selec tltrim(rtrim(’hello’))返回值為:hello(前后都無(wú)空格)
C.selec treplace(’hello’,’e’,’o’)返回值為:hollo
D.selec tlen(’hello’)返回值為:5