單項(xiàng)選擇題表book中包含三個(gè)字段:title(varchar),author(varchar),price(float)。Author的默認(rèn)值是’UNKNOW’,執(zhí)行sql語(yǔ)句:insertbook(title,price)values(‘jsp’,50)。以下結(jié)果正確的是()。

A.插入失敗,sql語(yǔ)句有錯(cuò)
B.插入成功,author列的數(shù)據(jù)是UNKNOW
C.插入成功,author列的數(shù)據(jù)是NULL
D.插入成功,author列的數(shù)據(jù)是50


您可能感興趣的試卷

你可能感興趣的試題

1.多項(xiàng)選擇題關(guān)于主鍵,以下()說(shuō)法是錯(cuò)誤的。

A.主鍵可以用來(lái)確保表中不存在重復(fù)的數(shù)據(jù)行。
B.一個(gè)表必須有一個(gè)主鍵。
C.一個(gè)表只能有一個(gè)主鍵。
D.只能對(duì)整數(shù)型列設(shè)置主鍵。

2.單項(xiàng)選擇題創(chuàng)建一個(gè)名為‘Customers’的新表,同時(shí)要求新表中包含表‘clients’的所有記錄,sql語(yǔ)句是()。

A.Select*into customers from clients
B.Select into customers from clients
C.Insert into customers select*from clients
D.Insert customers select*from clients