失效链接处理 |
数据库基础面试题-中级 PDF 下载
本站整理下载:
提取码:0vte
相关截图:
主要内容:
1.InnoDB支持的索引算法是?
A. B+树
B. B-树
C. B*树
D. B/树
正确答案是:A
2.MySQL如何修改一个表a的名字为b
A. change table a to b;
B. rename table a to b;
C. update table a to b;
D. alter table a to b;
正确答案是:B
3.mysql shell如何查看服务器状态?
A. show mysql status;
B. show status;
C. select status;
D. select mysql status;
正确答案是:B
4.SQL如何把A表中的数据导入到新的B表中?
A. Save INTO table2 SELECT * FROM table1;
B. Copy INSERT INTO table2 SELECT * FROM table1;
C. INTO table2 SELECT * FROM table1;
D. INSERT INTO table2 SELECT * FROM table1;
正确答案是:D
5.mysql shell登录数据库的命令是?
A. mysql -u root -p password
B. mysql -user root -p password
C. mysql -user root -pass password
D. mysql -user root -password password
正确答案是:A
6.MySQL如何删除一个表a?
A. detelet table a
B. detelet from table a
C. drop table a
D. drop *from table a
正确答案是:C
7.MySQL如何从表a中查询前面20条数据
A. select top 20 * from a
B. select top 20 * from table a
C. select top 20 from a
D. select * from a limit 20
正确答案是:D(mysql不支持top)
8.如何找出标题title中带“数据库”关键字的所有记录?
A. select * from table where title like '*数据库%'
B. select * from table where title like '%数据库*'
C. select * from table where title like '%数据库%'
|