選項後的百分數表示, 同窗們選擇時的傾向
mysql
百分比相加不到100%, 由於有些同窗沒有選, 或者有同窗交了白卷
sql
正確答案:
A
數據庫
A create database tb_name; (100%)
B show databases;(0%) // 查看有哪些數據庫
C use database;(0%) // 使用數據庫
D drop database tb_name;(0%) // 刪除數據庫
複製代碼
正確答案:
B
函數
A char(15) // 定長15位(31%)
B varchar(15)(55%) // 變長的字符串
C int (9%)// 數字有取值範圍(-2147483648~2147483647), 不參與運算的數字, 推薦使用字符串
D decimal(15,0)(3%) // 小數
複製代碼
正確答案:
C
post
A create database(0%) // 建立
B alter database(1%) // 修改
C drop database(86%)
D delete database(11%) // delete只能刪除數據
複製代碼
正確答案:
A
ui
A alter table(80%)
B create table(0%) // 建表
C update table(18%) // 更新數據
D insert table(1%) // 插入數據(insert into)
複製代碼
正確答案:
C
spa
A top(3%) // mysql不支持top
B count(9%) // 計數
C distinct(81%)
D desc(4%) // 降序
複製代碼
正確答案:
C
code
A >= 1500 or <= 2000(4%) // and
B 1500 and 2000(3%) // 應該加between
C between 1500 and 2000(85%)
D between >= 1500 and 2000(6%) // between 和>= 不能同時用
複製代碼
正確答案:
B
regexp
A sum(3%) // 求和
B avg(93%)
C count(1%) // 計數
D min(1%) // 最小值
複製代碼
正確答案:
C
排序
A order by(1%) // 排序
B where(22%) // group by 以前的篩選
C group by(73%) // group by 以後的篩選
D 以上都不是(1%)
複製代碼
正確答案:
B
A <=(1%)
B in(88%) // 子查詢有多個結果, 使用in, 只有一個結果, 使用=
C like(3%)
D >=(6%)
複製代碼
正確答案:
C
A 建議是數值型(55%)
B 建議是字符型(13%)
C 建議是數值型或字符型(19%) // select ceiling ('2.3')也能夠
D 不限制數據類型(11%)
複製代碼
正確答案:
C
A rand( )(11%) // 隨機數
B replace( )(1%) // 替換字符串
C round( )(81%) // 四捨五入
D insert( )(4%) // 沒講
複製代碼
正確答案:
B
A RIGHT(LEFT(a,21),4)(0%)
B RIGHT(LEFT(a,12),3)(54%) // 先截到"一個堅決的人只會說yes",而後從右往左,取3個,yes
C RIGHT(LEFT(a,20),3)(11%)
D SUBSTRING(a,19,3)(32%)
複製代碼
正確答案:
D
A asc(8%) // 升序
B count(1%) // 計數
C distinct(3%) // 去重
D desc(86%)
複製代碼
正確答案:
D
A sum(1%) // 求和
B avg(3%) // 平均
C count(1%) // 計數
D min(93%)
複製代碼
正確答案:
C
A >= 1500 or <=2000(4%) // 1800 就會被選中
B >= 1500 and <= 2000(11%) // 在的狀況
C < 1500 or > 2000(19%)
D < 1500 and > 2000(63%) // 不存在
複製代碼
正確答案:
B
A 子查詢意味着,查詢語句中嵌套了查詢語句(3%)
B 自鏈接時, 無需爲表起別名(65%) // 不起別名會報錯
C =any 和 in ( ) 操做的結果是同樣的(18%)
D 沒有 = all 的子查詢(13%)
複製代碼
正確答案:
C
A select group by where having(9%)
B select group by having where(1%)
C select where group by having(78%) // having在group by以後, where在group by 以前
D select having group by where(9%)
複製代碼
正確答案:
B
A 10,5(37%)
B 5,5(55%) 整數位 10-5
C 15,5(4%)
D 5,10(1%)
複製代碼
正確答案:
B
A drop(22%) // 刪庫, 刪表
B delete(77%) // 清數據
C remove(0%)
D clear(0%)
複製代碼
正確答案:
B
A 1(27%)
B 33(60%) // 求餘
C 66(9%)
D 99(1%)
複製代碼
正確答案:
A
A version( )(67%)
B user( )(8%) // 用戶信息
C database( )(24%) // 當前數據庫
D charset( )(0%) // 當前字符集
複製代碼
正確答案:
A
A 1(81%) // 99除以66, 取整數
B 33(11%)
C 66(1%)
D 99(3%)
複製代碼
正確答案:
B
A 1(13%)
B 2(73%) // 99/66 = 1.5 四捨五入 2
C 3(9%)
D 0(1%)
複製代碼
正確答案:
A
A 1(68%) // 1.5 向下取整 1
B 2(19%)
C 3(3%)
D 0(6%)
複製代碼
正確答案:
A
A abc(85%) // 從左往右取3個
B bcd(8%)
C lmn(4%)
D klm(0%)
複製代碼
正確答案:
B
A hello world !(16%)
B helloworld!(75%) // 沒有分隔符
C hello world!(4%)
D helloworld !(1%)
複製代碼
正確答案:
C
A abcd(3%)
B bcde(9%)
C klmn(83%) // 從右往左取4個
D jklm(1%)
複製代碼
正確答案:
A
A efgh(57%) // 從第五位, 向後取4位
B fghi(34%)
C ghij(4%)
D hijk(1%)
複製代碼
正確答案:
A
A 2019(68%) // 獲取當前年份
B 3(3%)
C 29(8%)
D 都不對(18%)
複製代碼
正確答案:
C
A 2007-10-08(3%)
B 2008-09-08(8%)
C 2007-09-15(83%) // date_add 加 一個星期
D 2008-10-08(3%)
複製代碼
正確答案:
B
A 23(47%)
B -23(49%) // 左減右
C 24(1%)
D -24(0%)
複製代碼
正確答案:
A
A 2006-09-08(75%) // 減一年
B 2007-08-08(4%)
C 2007-09-07(6%)
D 都不對(8%)
複製代碼
正確答案:
A
A 2(78%) // 平方根
B 16(14%)
C 4(4%)
D 1(0%)
複製代碼
正確答案:
C
A rand()(26%)
B 1(16%)
C 0(9%) // 隨機數不等於隨機數
D 都不對(45%)
複製代碼
正確答案:
A
A 8(77%) // 2的三次方
B 6(16%)
C 9(1%)
D 5(3%)
複製代碼
正確答案:
B
A select tid,tname,title from teacher where salary <= 1500 and salary >= 2000;(78%) // 不存在
B select tid,tname,title from teacher where salary <= 1500 or salary >= 2000;(9%)
C select tid,tname,title from teacher where salary >= 1500 and salary <= 2000;(9%)//在的狀況
D select tid,tname,title from teacher where salary >= 1500 or salary <= 2000;(0%)// 不符合題目要求
複製代碼
正確答案:
D
A gbk(18%)
B gb2312(8%)
C utf8(9%)
D latin1(62%) // 拉丁
複製代碼
正確答案:
A
A select bookname,floor(bookprice) from bookinfo;(70%)
B select bookname,sum(bookprice) from bookinfo;(3%) // 求和
C select bookname,rand(bookprice) from bookinfo;(21%) // 隨機數
D select bookname,bookprice from bookinfo;(1%) // 沒有把單價精確到個位
複製代碼
正確答案:
C
A select bookname,booksum,bookprice from bookinfo where bookname regexp '$Processing'; // $應該寫在最後
B select bookname,booksum,bookprice from bookinfo where bookname regexp '^Processing'; // 以Processing開頭
C select bookname,booksum,bookprice from bookinfo where bookname like (19%)'%Processing';(6%)
D select bookname,booksum,bookprice from bookinfo where bookname like (67%)'%Processing_';(4%) // 多了一個_
複製代碼
正確答案:
D
A select date('2019-04-01');(13%) // 結果是2019-04-01
B select dateofyear('2019-04-01');(19%) // 不存在該函數
C select day('2019-04-01');(4%) // 結果是1
D select dayofyear('2019-04-01');(60%)
複製代碼
正確答案:
C
A select date_add('2019-04-04', 7 days);(1%) // 不用複數
B select date_add('2019-04-04', 7 day);(26%) // 須要interval
C select date_add('2019-04-04', interval 1 week);(59%)
D select date_add('2019-04-04', char 1 week);(11%) // 應該是interval
複製代碼
正確答案:
B
A select sid,score from scourse where cid == 'C3';(3%) // 用法不正確
B select sid,score from scourse where cid = 'C3';(80%)
C select sid,score from scourse where cid in 'C3';(11%) // in ('C3')
D select sid,score from scourse where cid is 'C3';(3%) // is null
複製代碼
正確答案:
D
A select sid,cid,score from scourse having score >= 85;(1%)
B select sid,cid,score from scourse having score > 85;(11%)
C select sid,cid,score from scourse where score >= 85;(3%)
D select sid,cid,score from scourse where score > 85;(81%) // 高於85 ==> score>85
複製代碼
正確答案:
D
A select sid,cid,score from scourse where cid not is 'C1' or cid not is 'C2';(3%) // is用法錯誤
B select sid,cid,score from scourse where cid not is 'C1' and cid not is 'C2';(36%)// is用法錯誤
C select sid,cid,score from scourse where cid != 'C1' or cid != 'C2';(4%)
D select sid,cid,score from scourse where cid != 'C1' and cid != 'C2';(54%)
複製代碼
正確答案:
D
A select salary,tid,tname,title from teacher where 1500 <= salary <= 2000;(1%) // 全選
B select salary,tid,tname,title from teacher where salary in(1500, 2000);(11%) //二選一
C select salary,tid,tname,title from teacher where salary between 1500, 2000;(3%) // between and
D select salary,tid,tname,title from teacher where salary between 1500 and 2000;(80%)
複製代碼
正確答案:
B
A select tid,tname from teacher where tname regexp '張$';(3%) // 以張結尾
B select tid,tname from teacher where tname like '張%';(86%)
C select tid,tname from teacher where tname like '張__';(6%)//這個只能匹配3個字的
D select tid,tname from teacher where tname like '張_';(1%)//這個只能匹配2個字的
複製代碼
正確答案:
B
A select sid,cid,score from scourse where cid >= 'C1' and cid <= 'C2';(42%)
B select sid,cid,score from scourse where cid is 'C1' or cid is 'C2';(9%) // is 用法不對
C select sid,cid,score from scourse where cid between 'C1' and 'C2';(24%)
D select sid,cid,score from scourse where cid in ('C1','C2');(21%)
複製代碼
正確答案:
A
A select sid,score from student where cid = 'C1' order by score desc;(88%)
B select sid,score from student where cid = 'C1' order by score asc;(4%) // 升序
C select sid,score from student where cid = 'C1' order by score;(0%) // 默認升序
D select sid,score from student where cid = 'C1';(4%) // 沒有排序, 默認主鍵升序排序
複製代碼
正確答案:
A
A select count(*) from student where dept = '計算機系';(75%)
B select sum(*) from student where dept = '計算機系';(13%) // sum 求和
C select count(*) from student where dept is '計算機系';(1%) // is 用法不對
D select sum(*) from student where dept is '計算機系';(8%) // sum 求和
複製代碼
正確答案:
C
A select * from student order by score desc limit 1,3;(18%) // 234
B select * from student order by score asc limit 1,3;(16%) // 倒數234
C select * from student order by score desc limit 0,3;(60%)
D select * from student order by score asc limit 0,3;(3%)// 倒數123
複製代碼
正確答案:
錯
對 (95%)
錯 (3%) // show engines;
複製代碼
正確答案:
對
對 (68%)
錯 (29%)
複製代碼
正確答案:
錯
對 (59%)
錯 (39%) // 配置文件裏沒寫, 默認latin1
複製代碼
正確答案:
錯
對 (50%)
錯 (47%) // drop table user;
複製代碼
正確答案:
錯
對 (16%)
錯 (81%) // drop database library;
複製代碼
正確答案:
錯
對 (93%)
錯 (4%) // 前補零 zerofill
複製代碼
正確答案:
對
對 (68%)
錯 (29%)
複製代碼
正確答案:
對
對 (63%)
錯 (34%)
複製代碼
正確答案:
對
對 (85%)
錯 (13%)
複製代碼
正確答案:
對
對 (73%)
錯 (24%)
複製代碼
正確答案:
對
對 (91%)
錯 (6%)
複製代碼
正確答案:
對
對 (96%)
錯 (1%)
複製代碼
正確答案:
對
對 (8%)
錯 (90%)
複製代碼
正確答案:
錯
對 (4%)
錯 (93%) // 主鍵不能爲空
複製代碼
正確答案:
錯
對 (11%)
錯 (86%) // 主鍵不能重複
複製代碼
正確答案:
對
對 (90%)
錯 (8%)
複製代碼
正確答案:
對
對 (90%)
錯 (8%)
複製代碼
正確答案:
對
對 (59%)
錯 (37%)
複製代碼
正確答案:
錯
對 (49%)
錯 (47%) // select database();
複製代碼
正確答案:
對
對 (57%)
錯 (40%)
複製代碼
正確答案:
錯
對 (42%)
錯 (55%) // 能夠不一致, 數據類型一致便可
複製代碼
正確答案:
對
對 (88%)
錯 (9%)
複製代碼
正確答案:
對
對 (90%)
錯 (8%)
複製代碼
正確答案:
對
對 (90%)
錯 (8%)
複製代碼
正確答案:
錯
對 (26%)
錯 (72%) // 屬於外鏈接
複製代碼
正確答案:
錯
對 (39%)
錯 (59%) // 能夠不用, 使用空格分隔便可
複製代碼
正確答案:
錯
對 (42%)
錯 (55%) // 數據表, 數據字段均可以起別名
複製代碼
正確答案:
對
對 (77%)
錯 (21%)
複製代碼
正確答案:
對
對 (39%)
錯 (59%)
複製代碼
正確答案:
錯
對 (26%)
錯 (72%) // mysql不支持full join
複製代碼
正確答案:
錯
對 (39%)
錯 (59%) // 大於最小的
複製代碼
正確答案:
錯
對 (37%)
錯 (60%) // 小於最大的
複製代碼
正確答案:
對
對 (52%)
錯 (45%)
複製代碼
正確答案:
錯
對 (4%)
錯 (93%) // 能夠是任何類型, 只要值不重複便可
複製代碼
正確答案:
錯
對 (3%)
錯 (95%) //能夠是任何數據類型
複製代碼
正確答案:
錯
對 (36%)
錯 (62%) // tinyint的取值範圍是固定的, 無符號可取0~255 有符號可取-128~127, 小括號中的數字表示前補零的位數
複製代碼
正確答案:
錯
對 (27%)
錯 (70%) // 3 * 5 = 15
複製代碼
正確答案:
錯
對 (32%)
錯 (65%) // 能夠省略, 空格分開便可
複製代碼
正確答案:
錯
對 (45%)
錯 (52%) // select * from tb as `t b`;
複製代碼
正確答案:
錯
對 (22%)
錯 (75%) // 能夠同時出現, 不過 where 在 group by 以前, having 在 group by 以後
複製代碼
正確答案:
對
對 (36%)
錯 (62%)
複製代碼
正確答案:
錯
對 (86%)
錯 (9%) // cross join 不須要額外的條件
複製代碼
正確答案:
對
對 (70%)
錯 (26%)
複製代碼
正確答案:
錯
對 (4%)
錯 (93%) // <>是不等於(!=)
複製代碼
正確答案:
對
對 (73%)
錯 (24%)
複製代碼
正確答案:
錯
對 (91%)
錯 (6%) // 只能去除字符串兩邊的空格
複製代碼
正確答案:
對
對 (29%)
錯 (68%)
複製代碼
正確答案:
對
對 (45%)
錯 (52%)
複製代碼
正確答案:
錯
對 (91%)
錯 (6%) // 只是截取, 不包括四捨五入
複製代碼
正確答案:
對
對 // 還用懷疑嗎? 對 70%
錯 (26%)
複製代碼