A.Truncate table 可跟Where從句,根據(jù)條件進(jìn)行刪除 B.Truncate table 用來(lái)刪除表中所有數(shù)據(jù) C.觸發(fā)器對(duì)Truncate table無(wú)效 D.delete 比Truncate table速度快
A.truncate table book B.delete * from book C.drop table book D.delete from book
A.如果不能有同時(shí)重復(fù)的username和password,那么username和password可以組合在一起作為主鍵。 B.此表設(shè)計(jì)主鍵時(shí),根據(jù)選擇主鍵的最小性原則,最好采用userid作為主鍵。 C.此表設(shè)計(jì)主鍵時(shí),根據(jù)選擇主鍵的最小性原則,最好采用username和password作為組合鍵。 D.如果采用userid作為主鍵,那么在userid列輸入的數(shù)值,允許為空。