亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? having.test

?? 開啟mysql的遠程連接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
?? TEST
字號:
# test of problems with having (Reported by Mark Rogers)#--disable_warningsdrop table if exists t1,t2,t3;--enable_warningscreate table t1 (a int);select count(a) as b from t1 where a=0 having b > 0;insert into t1 values (null);select count(a) as b from t1 where a=0 having b > 0;select count(a) as b from t1 where a=0 having b >=0;explain extended select count(a) as b from t1 where a=0 having b >=0;drop table t1; ## Test of problem with HAVING and AVG()#CREATE TABLE t1 (  raw_id int(10) NOT NULL default '0',  chr_start int(10) NOT NULL default '0',  chr_end int(10) NOT NULL default '0',  raw_start int(10) NOT NULL default '0',  raw_end int(10) NOT NULL default '0',  raw_ori int(2) NOT NULL default '0');INSERT INTO t1 VALUES (469713,1,164123,1,164123,1),(317330,164124,317193,101,153170,1),(469434,317194,375620,101,58527,1),(591816,375621,484273,1,108653,1),(591807,484274,534671,91,50488,1),(318885,534672,649362,101,114791,1),(318728,649363,775520,102,126259,1),(336829,775521,813997,101,38577,1),(317740,813998,953227,101,139330,1),(1,813998,953227,101,139330,1);CREATE TABLE t2 (  id int(10) unsigned NOT NULL default '0',  contig_id int(10) unsigned NOT NULL default '0',  seq_start int(10) NOT NULL default '0',  seq_end int(10) NOT NULL default '0',  strand tinyint(2) NOT NULL default '0',  KEY id (id));INSERT INTO t2 VALUES (133195,469713,61327,61384,1),(133196,469713,64113,64387,1),(133197,1,1,1,0),(133197,1,1,1,-2);SELECT e.id,   MIN( IF(sgp.raw_ori=1,          (e.seq_start+sgp.chr_start-sgp.raw_start),            (sgp.chr_start+sgp.raw_end-e.seq_end))) as start,    MAX( IF(sgp.raw_ori=1,           (e.seq_end+sgp.chr_start-sgp.raw_start),             (sgp.chr_start+sgp.raw_end-e.seq_start))) as end,    AVG(IF (sgp.raw_ori=1,e.strand,(-e.strand))) as chr_strand FROM  t1 sgp,      t2 e  WHERE sgp.raw_id=e.contig_id GROUP BY e.id HAVING chr_strand= -1 and end >= 0   AND start <= 999660;drop table t1,t2;## Test problem with having and MAX() IS NOT NULL#CREATE TABLE t1 (Fld1 int(11) default NULL,Fld2 int(11) default NULL);INSERT INTO t1 VALUES (1,10),(1,20),(2,NULL),(2,NULL),(3,50);select Fld1, max(Fld2) as q from t1 group by Fld1 having q is not null;select Fld1, max(Fld2) from t1 group by Fld1 having max(Fld2) is not null;select Fld1, max(Fld2) from t1 group by Fld1 having avg(Fld2) is not null;select Fld1, max(Fld2) from t1 group by Fld1 having std(Fld2) is not null;select Fld1, max(Fld2) from t1 group by Fld1 having variance(Fld2) is not null;drop table t1;## Test problem with count(distinct) in having#create table t1 (id int not null, qty int not null);insert into t1 values (1,2),(1,3),(2,4),(2,5);select id, sum(qty) as sqty from t1 group by id having sqty>2;select sum(qty) as sqty from t1 group by id having count(id) > 0;select sum(qty) as sqty from t1 group by id having count(distinct id) > 0;drop table t1;## Test case for Bug #4358 Problem with HAVING clause that uses alias from the#              select list and TEXT field #CREATE TABLE t1 (  `id` bigint(20) NOT NULL default '0',  `description` text) ENGINE=MyISAM;CREATE TABLE t2 (  `id` bigint(20) NOT NULL default '0',  `description` varchar(20)) ENGINE=MyISAM;INSERT INTO t1  VALUES (1, 'test');INSERT INTO t2 VALUES (1, 'test');CREATE TABLE t3 (  `id`       bigint(20) NOT NULL default '0',  `order_id` bigint(20) NOT NULL default '0') ENGINE=MyISAM;select	a.id, a.description,	count(b.id) as c from t1 a left join t3 b on a.id=b.order_id group by a.id, a.description having (a.description is not null) and (c=0);select	a.*, 	count(b.id) as c from t2 a left join t3 b on a.id=b.order_id group by a.id, a.descriptionhaving (a.description is not null) and (c=0);INSERT INTO t1  VALUES (2, 'test2');select	a.id, a.description,	count(b.id) as c from t1 a left join t3 b on a.id=b.order_id group by a.id, a.description having (a.description is not null) and (c=0);drop table t1,t2,t3;## Bug #14274: HAVING clause containing only set function#CREATE TABLE t1 (a int);INSERT INTO t1 VALUES (3), (4), (1), (3), (1);SELECT SUM(a) FROM t1 GROUP BY a HAVING SUM(a)>0;SELECT SUM(a) FROM t1 GROUP BY a HAVING SUM(a);DROP TABLE t1;# End of 4.1 tests## Tests for WL#1972 CORRECT EVALUATION OF COLUMN REFERENCES IN THE HAVING CLAUSE# Per the SAP VERI tests and WL#1972, MySQL must ensure that HAVING can# correctly evaluate column references from the GROUP BY clause, even if the# same references are not also found in the select list.## set global sql_mode='ansi';# set session sql_mode='ansi';create table t1 (col1 int, col2 varchar(5), col_t1 int);create table t2 (col1 int, col2 varchar(5), col_t2 int);create table t3 (col1 int, col2 varchar(5), col_t3 int);insert into t1 values(10,'hello',10);insert into t1 values(20,'hello',20);insert into t1 values(30,'hello',30);insert into t1 values(10,'bye',10);insert into t1 values(10,'sam',10);insert into t1 values(10,'bob',10);insert into t2 select * from t1;insert into t3 select * from t1;select count(*) from t1 group by col1 having col1 = 10;select count(*) as count_col1 from t1 group by col1 having col1 = 10;select count(*) as count_col1 from t1 as tmp1 group by col1 having col1 = 10;select count(*) from t1 group by col2 having col2 = 'hello';--error 1054select count(*) from t1 group by col2 having col1 = 10;select col1 as count_col1 from t1 as tmp1 group by col1 having col1 = 10;select col1 as count_col1 from t1 as tmp1 group by col1 having count_col1 = 10;select col1 as count_col1 from t1 as tmp1 group by count_col1 having col1 = 10;# ANSI: should return SQLSTATE 42000 Syntax error or access violation # MySQL: returns 10 - because of GROUP BY name resolutionselect col1 as count_col1 from t1 as tmp1 group by count_col1 having count_col1 = 10;# ANSI: should return SQLSTATE 42000 Syntax error or access violation # MySQL: returns 10 - because of GROUP BY name resolutionselect col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col1 = 10;select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having count_col1 = 10;select col1 as count_col1,col2 from t1 as tmp1 group by col1,col2 having col2 = 'hello';select col1 as count_col1,col2 as group_col2 from t1 as tmp1 group by col1,col2 having group_col2 = 'hello';--error 1064select sum(col1) as co12 from t1 group by col2 having col2 10; select sum(col1) as co2, count(col2) as cc from t1 group by col1 having col1 =10; --error 1054select t2.col2 from t2 group by t2.col1, t2.col2 having t1.col1 <= 10;## queries with nested sub-queries## the having column is resolved in the same queryselect t1.col1 from t1where t1.col2 in       (select t2.col2 from t2        group by t2.col1, t2.col2 having t2.col1 <= 10);select t1.col1 from t1where t1.col2 in       (select t2.col2 from t2       group by t2.col1, t2.col2       having t2.col1 <=              (select min(t3.col1) from t3));# the having column is resolved in the SELECT clause of the outer query -# works in ANSIselect t1.col1 from t1where t1.col2 in      (select t2.col2 from t2        group by t2.col1, t2.col2 having t1.col1 <= 10);# the having column is resolved in the SELECT clause of the outer query -# error in ANSI, works with MySQL extensionselect t1.col1 as tmp_col from t1where t1.col2 in       (select t2.col2 from t2        group by t2.col1, t2.col2 having tmp_col <= 10);# the having column is resolved in the FROM clause of the outer query -# works in ANSIselect t1.col1 from t1where t1.col2 in       (select t2.col2 from t2        group by t2.col1, t2.col2 having col_t1 <= 10);# Item_field must be resolved in the same way as Item_refselect sum(col1) from t1group by col_t1having (select col_t1 from t2 where col_t1 = col_t2 order by col_t2 limit 1);# nested queries with HAVING, inner having column resolved in outer FROM clause# the outer having column is not referenced in GROUP BY which results in an error--error 1054select t1.col1 from t1where t1.col2 in       (select t2.col2 from t2        group by t2.col1, t2.col2 having col_t1 <= 10)having col_t1 <= 20;# both having columns are resolved in the GROUP clause of the outer queryselect t1.col1 from t1where t1.col2 in       (select t2.col2 from t2        group by t2.col1, t2.col2 having col_t1 <= 10)group by col_t1having col_t1 <= 20;## nested HAVING clauses## non-correlated subqueriesselect col_t1, sum(col1) from t1group by col_t1having col_t1 > 10 and       exists (select sum(t2.col1) from t2               group by t2.col2 having t2.col2 > 'b');# correlated subqueries - inner having column 't1.col2' resolves to# the outer FROM clause, which cannot be used because the outer query# is grouped--error 1054select sum(col1) from t1group by col_t1having col_t1 in (select sum(t2.col1) from t2                  group by t2.col2, t2.col1 having t2.col1 = t1.col1);# correlated subqueries - inner having column 'col_t1' resolves to# the outer GROUP clauseselect sum(col1) from t1group by col_t1having col_t1 in (select sum(t2.col1) from t2                  group by t2.col2, t2.col1 having t2.col1 = col_t1);## queries with joins and ambiguous column names#--error 1052select t1.col1, t2.col1 from t1, t2 where t1.col1 = t2.col1group by t1.col1, t2.col1 having col1 = 2;--error 1052select t1.col1*10+t2.col1 from t1,t2 where t1.col1=t2.col1group by t1.col1, t2.col1 having col1 = 2;drop table t1, t2, t3;# More queries to test ANSI compatibilitycreate table t1 (s1 int);insert into t1 values (1),(2),(3);select count(*) from t1 group by s1 having s1 is null;# prepared statements prints warnings too early--disable_ps_protocolselect s1*0 as s1 from t1 group by s1 having s1 <> 0;--enable_ps_protocol# ANSI requires: 3 rows# MySQL returns: 0 rows - because of GROUP BY name resolutionselect s1*0 from t1 group by s1 having s1 = 0;select s1 from t1 group by 1 having 1 = 0;select count(s1) from t1 group by s1 having count(1+1)=2;# ANSI requires: 3 rows# MySQL returns: 0 rows - because of GROUP BY name resolutionselect count(s1) from t1 group by s1 having s1*0=0;-- error 1052select * from t1 a, t1 b group by a.s1 having s1 is null;# ANSI requires: 0 rows# MySQL returns:# "ERROR 1052 (23000): Column 's1' in having clause is ambiguous"# I think the column is ambiguous in ANSI too.# It is the same as:#   select a.s1, b.s1 from t1 a, t1 b group by a.s1 having s1 is null;# currently we first check SELECT, thus s1 is ambiguous.drop table t1;create table t1 (s1 char character set latin1 collate latin1_german1_ci);insert into t1 values ('ü'),('y');select s1,count(s1) from t1group by s1 collate latin1_swedish_ci having s1 = 'y';# ANSI requires: 1 row, with count(s1) = 2# MySQL returns: 1 row, with count(s1) = 1drop table t1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区婷婷月色| 青青草97国产精品免费观看无弹窗版| 亚洲午夜一二三区视频| 久久99精品久久久久久国产越南| 一本色道久久加勒比精品| 精品理论电影在线| 一区二区三区色| www.欧美精品一二区| 337p日本欧洲亚洲大胆色噜噜| 亚洲精品乱码久久久久久日本蜜臀| 国产精品18久久久久久久久久久久| 欧美精品久久久久久久久老牛影院| 国产精品丝袜91| 国产精品一区二区久激情瑜伽 | 国产白丝精品91爽爽久久| 欧美日韩专区在线| 一区二区三区四区在线| 不卡视频免费播放| 国产视频911| 国产在线精品国自产拍免费| 欧美妇女性影城| 亚洲成人av在线电影| 91久久精品一区二区二区| 国产精品乱码一区二区三区软件| 另类小说图片综合网| 91.com视频| 美女爽到高潮91| 日韩免费高清av| 日本美女一区二区三区视频| 欧美精品乱码久久久久久 | 欧美色大人视频| 一区二区三区在线影院| 色综合久久久久综合| 一区二区三区在线观看视频 | 日韩视频永久免费| 蜜桃av噜噜一区二区三区小说| 欧美一区二区免费观在线| 日本午夜精品一区二区三区电影| 欧美一二三区在线| 精品无人码麻豆乱码1区2区 | 亚洲最新视频在线播放| 欧美亚洲一区三区| 亚洲高清久久久| 欧美三级在线看| 日韩精品电影在线观看| 日韩欧美一区二区视频| 国产一区二区成人久久免费影院| 久久天天做天天爱综合色| 粉嫩av一区二区三区粉嫩 | 图片区小说区区亚洲影院| 欧美精品色综合| 国产毛片一区二区| 国产精品丝袜久久久久久app| 一本色道亚洲精品aⅴ| 日韩精彩视频在线观看| 亚洲精品在线电影| 成人高清伦理免费影院在线观看| 亚洲精品免费播放| 日韩精品一区国产麻豆| 国产成人精品影视| 亚洲午夜电影网| 久久综合九色综合97_久久久| 国产99久久久国产精品潘金 | 国产日韩av一区二区| www.欧美日韩| 久久爱www久久做| 日韩理论片中文av| 日韩女优制服丝袜电影| 99麻豆久久久国产精品免费优播| 亚洲国产三级在线| 国产欧美日韩综合精品一区二区| 91麻豆国产精品久久| 青青草国产精品97视觉盛宴| 国产精品乱子久久久久| 欧美肥妇bbw| youjizz国产精品| 蜜乳av一区二区| 亚洲一区免费观看| 日本一区二区三区高清不卡| 欧美精品高清视频| 97久久精品人人做人人爽50路| 免费国产亚洲视频| 亚洲一区二区av在线| 国产精品久久二区二区| 欧美videos大乳护士334| 日本韩国一区二区| 成人黄色av电影| 精品一区二区三区的国产在线播放| 亚洲欧美日韩系列| 中文字幕第一页久久| 精品国产网站在线观看| 欧美电影影音先锋| 色婷婷av一区二区| 91麻豆国产香蕉久久精品| 国产夫妻精品视频| 久久不见久久见免费视频1| 亚洲成人av一区二区| 亚洲主播在线观看| 亚洲一线二线三线久久久| 亚洲欧美日韩中文字幕一区二区三区| 久久久91精品国产一区二区精品 | 成人国产一区二区三区精品| 精品一区二区三区香蕉蜜桃| 日韩有码一区二区三区| 日精品一区二区| 日一区二区三区| 亚洲r级在线视频| 亚洲无线码一区二区三区| 亚洲一区二区3| 亚洲电影在线免费观看| 午夜视频久久久久久| 亚洲在线视频免费观看| 一区二区三区不卡在线观看| 亚洲一区在线观看免费观看电影高清 | 懂色av噜噜一区二区三区av| 国产一区二区三区免费在线观看| 久久国产精品一区二区| 久久99国产精品久久| 国产一区视频导航| 国产成人av资源| av影院午夜一区| 欧美亚洲一区二区在线观看| 欧美日韩成人一区二区| 欧美一区二视频| 精品国产乱码久久久久久免费 | 日韩精品中午字幕| 日韩精品一区二区三区中文精品 | 亚洲国产成人91porn| 性久久久久久久久久久久| 免费欧美日韩国产三级电影| 国内精品国产成人| 99麻豆久久久国产精品免费| 色综合久久中文综合久久97| 777奇米四色成人影色区| 日韩欧美国产高清| 国产精品免费久久久久| 日韩国产欧美在线播放| 午夜在线成人av| 久久不见久久见中文字幕免费| 国产在线精品国自产拍免费| 成人av在线播放网址| 欧美性猛交xxxx乱大交退制版 | 欧美日本一区二区在线观看| 亚洲精品在线观看网站| 亚洲婷婷综合久久一本伊一区| 亚洲国产成人高清精品| 国产精品一线二线三线精华| 色综合一区二区| 91麻豆精品国产91久久久使用方法| 久久久久久久久久久久久夜| 亚洲天堂网中文字| 看片的网站亚洲| 色综合久久天天| 精品成人私密视频| 亚洲一卡二卡三卡四卡五卡| 国产精品88av| 欧美一区中文字幕| 亚洲色欲色欲www在线观看| 日韩成人午夜电影| 色综合天天综合色综合av| 久久综合999| 香蕉久久一区二区不卡无毒影院 | 国产精品一区二区果冻传媒| 在线影视一区二区三区| 国产亚洲一区字幕| 日韩国产精品大片| 一道本成人在线| 国产亚洲精品福利| 日产国产高清一区二区三区| 91亚洲精品久久久蜜桃网站 | 91麻豆国产在线观看| 久久免费美女视频| 丝袜诱惑亚洲看片 | av在线不卡电影| 久久综合九色欧美综合狠狠| 首页国产欧美久久| 色婷婷av一区二区三区软件| 欧美国产激情一区二区三区蜜月| 美国十次了思思久久精品导航| 色婷婷亚洲精品| 国产精品美女久久久久久| 国产精品一区专区| 日韩一级在线观看| 午夜精品福利一区二区三区av | 色噜噜久久综合| 国产精品久久久久久久久久久免费看 | 欧美日韩午夜影院| 亚洲一区二区三区四区的| 色综合天天综合给合国产| 国产精品美女一区二区| 国产成人一级电影| 国产女主播在线一区二区| 精品亚洲欧美一区| 精品久久一区二区三区| 久久精品国产精品亚洲精品| 欧美成人综合网站| 国产一区二区三区国产| 欧美精品一区二区久久久| 国产美女在线观看一区| 国产亚洲短视频|