單項(xiàng)選擇題mysql中創(chuàng)建數(shù)據(jù)庫abc,以下命令正確的是()。

A.drop table abc
B.create table if exists abc
C.create database abc
D.create table abc


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題如果存在stu表,則將其刪除的SQL語句是()。

A.drop table to stu
B.drop table stu
C.drop table if exists stu
D.create table stu

2.單項(xiàng)選擇題查詢wg表中所有數(shù)據(jù)的命令是()。

A.select * from wg
B.show tbales
C.show databases
D.show * from wg

3.單項(xiàng)選擇題查詢wg表中ID列的內(nèi)容的SQL語句是()。

A.select ID from wg
B.show ID from wg
C.select * from student group by ID
D.show * from wg

4.單項(xiàng)選擇題已知數(shù)據(jù)庫ds庫中有phones表,表中包含Brand(品牌),model(型號(hào)),colour(顏色)等字段,請(qǐng)查詢表中品牌為“華為”,型號(hào)為“P20”的相關(guān)信息,以下SQL語句操作正確的是()。

A.select * from ds.phones where Brand="華為"and model="P20"
B.select * from ds.phones where Brand="華為"or model="P20"
C.select * from ds.phones where having"華為"and"P20"
D.select * from ds.phones where having"華為"or"P20"

5.單項(xiàng)選擇題在SQL語句中,對(duì)所選字段進(jìn)行分組使用關(guān)鍵字()。

A.where
B.group by
C.order by
D.limit