⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sp.result

📁 开启mysql的远程连接的方法 mysql-noinstall-5.1.6-alpha-win32.zip
💻 RESULT
📖 第 1 页 / 共 5 页
字号:
delete from t1|drop procedure bug336|drop procedure if exists bug3157|create procedure bug3157()beginif exists(select * from t1) thenset @n= @n + 1;end if;if (select count(*) from t1) thenset @n= @n + 1;end if;end|set @n = 0|insert into t1 values ("a", 1)|call bug3157()|select @n|@n2delete from t1|drop procedure bug3157|drop procedure if exists bug5251|create procedure bug5251()beginend|select created into @c1 from mysql.procwhere db='test' and name='bug5251'|alter procedure bug5251 comment 'foobar'|select count(*) from mysql.procwhere  db='test' and name='bug5251' and created = @c1|count(*)1drop procedure bug5251|drop procedure if exists bug5251|create procedure bug5251()checksum table t1|call bug5251()|Table	Checksumtest.t1	0call bug5251()|Table	Checksumtest.t1	0drop procedure bug5251|drop procedure if exists bug5287|create procedure bug5287(param1 int)label1:begindeclare c cursor for select 5;loopif param1 >= 0 thenleave label1;end if;end loop;end|call bug5287(1)|drop procedure bug5287|drop procedure if exists bug5307|create procedure bug5307()beginend; set @x = 3|call bug5307()|select @x|@x3drop procedure bug5307|drop procedure if exists bug5258|create procedure bug5258()beginend|drop procedure if exists bug5258_aux|create procedure bug5258_aux()begindeclare c, m char(19);select created,modified into c,m from mysql.proc where name = 'bug5258';if c = m thenselect 'Ok';elseselect c, m;end if;end|call bug5258_aux()|OkOkdrop procedure bug5258|drop procedure bug5258_aux|drop function if exists bug4487|create function bug4487() returns charbegindeclare v char;return v;end|select bug4487()|bug4487()NULLdrop function bug4487|drop procedure if exists bug4941|drop procedure if exists bug4941|create procedure bug4941(out x int)begindeclare c cursor for select i from t2 limit 1;open c;fetch c into x;close c;end|insert into t2 values (null, null, null)|set @x = 42|call bug4941(@x)|select @x|@xNULLdelete from t1|drop procedure bug4941|drop procedure if exists bug4905|create table t3 (s1 int,primary key (s1))|drop procedure if exists bug4905|create procedure bug4905()begindeclare v int;declare continue handler for sqlstate '23000' set v = 5;insert into t3 values (1);end|call bug4905()|select row_count()|row_count()1call bug4905()|select row_count()|row_count()0call bug4905()|select row_count()|row_count()0select * from t3|s11drop procedure bug4905|drop table t3|drop procedure if exists bug6029|drop procedure if exists bug6029|create procedure bug6029()begindeclare exit handler for 1136  select '1136';declare exit handler for sqlstate '23000'  select 'sqlstate 23000';declare continue handler for sqlexception  select 'sqlexception';insert into t3 values (1);insert into t3 values (1,2);end|create table t3 (s1 int, primary key (s1))|insert into t3 values (1)|call bug6029()|sqlstate 23000sqlstate 23000delete from t3|call bug6029()|11361136drop procedure bug6029|drop table t3|drop procedure if exists bug8540|create procedure bug8540()begindeclare x int default 1;select x as y, x+0 as z;end|call bug8540()|y	z1	1drop procedure bug8540|create table t3 (s1 int)|drop procedure if exists bug6642|create procedure bug6642()select abs(count(s1)) from t3|call bug6642()|abs(count(s1))0call bug6642()|abs(count(s1))0drop procedure bug6642|insert into t3 values (0),(1)|drop procedure if exists bug7013|create procedure bug7013()select s1,count(s1) from t3 group by s1 with rollup|call bug7013()|s1	count(s1)0	11	1NULL	2call bug7013()|s1	count(s1)0	11	1NULL	2drop procedure bug7013|drop table if exists t4|create table t4 (a mediumint(8) unsigned not null auto_increment,b smallint(5) unsigned not null,c char(32) not null,primary key  (a)) engine=myisam default charset=latin1|insert into t4 values (1, 2, 'oneword')|insert into t4 values (2, 2, 'anotherword')|drop procedure if exists bug7743|create procedure bug7743 ( searchstring char(28) )begindeclare var mediumint(8) unsigned;select a into var from t4 where b = 2 and c = binary searchstring limit 1;select var;end|call bug7743("oneword")|var1call bug7743("OneWord")|varNULLWarnings:Warning	1329	No data to FETCHcall bug7743("anotherword")|var2call bug7743("AnotherWord")|varNULLWarnings:Warning	1329	No data to FETCHdrop procedure bug7743|drop table t4|delete from t3|insert into t3 values(1)|drop procedure if exists bug7992_1|Warnings:Note	1305	PROCEDURE bug7992_1 does not existdrop procedure if exists bug7992_2|Warnings:Note	1305	PROCEDURE bug7992_2 does not existcreate procedure bug7992_1()begindeclare i int;select max(s1)+1 into i from t3;end|create procedure bug7992_2()insert into t3 (s1) select max(t4.s1)+1 from t3 as t4|call bug7992_1()|call bug7992_1()|call bug7992_2()|call bug7992_2()|drop procedure bug7992_1|drop procedure bug7992_2|drop table t3|create table t3 (  userid bigint(20) not null default 0 )|drop procedure if exists bug8116|create procedure bug8116(in _userid int)select * from t3 where userid = _userid|call bug8116(42)|useridcall bug8116(42)|useriddrop procedure bug8116|drop table t3|drop procedure if exists bug6857|create procedure bug6857(counter int)begindeclare t0, t1 int;declare plus bool default 0;set t0 = current_time();while counter > 0 doset counter = counter - 1;end while;set t1 = current_time();if t1 > t0 thenset plus = 1;end if;select plus;end|drop procedure bug6857|drop procedure if exists bug8757|create procedure bug8757()begindeclare x int;declare c1 cursor for select data from t1 limit 1;begindeclare y int;declare c2 cursor for select i from t2 limit 1;open c2;fetch c2 into y;close c2;select 2,y;end;open c1;fetch c1 into x;close c1;select 1,x;end|delete from t1|delete from t2|insert into t1 values ("x", 1)|insert into t2 values ("y", 2, 0.0)|call bug8757()|2	y2	21	x1	1delete from t1|delete from t2|drop procedure bug8757|drop procedure if exists bug8762|drop procedure if exists bug8762; create procedure bug8762() begin end|drop procedure if exists bug8762; create procedure bug8762() begin end|drop procedure bug8762|drop function if exists bug5240|create function bug5240 () returns intbegindeclare x int;declare c cursor for select data from t1 limit 1;open c;fetch c into x;close c;return x;end|delete from t1|insert into t1 values ("answer", 42)|select id, bug5240() from t1|id	bug5240()answer	42drop function bug5240|drop procedure if exists p1|create table t3(id int)|insert into t3 values(1)|create procedure bug7992()begindeclare i int;select max(id)+1 into i from t3;end|call bug7992()|call bug7992()|drop procedure bug7992|drop table t3|create table t3 (lpitnumber int(11) default null,lrecordtype int(11) default null)|create table t4 (lbsiid int(11) not null default '0',ltradingmodeid int(11) not null default '0',ltradingareaid int(11) not null default '0',csellingprice decimal(19,4) default null,primary key  (lbsiid,ltradingmodeid,ltradingareaid))|create table t5 (lbsiid int(11) not null default '0',ltradingareaid int(11) not null default '0',primary key  (lbsiid,ltradingareaid))|drop procedure if exists bug8849|create procedure bug8849()begininsert into t5(t5.lbsiid,t5.ltradingareaid)select distinct t3.lpitnumber, t4.ltradingareaidfromt4 join t3 ont3.lpitnumber = t4.lbsiidand t3.lrecordtype = 1left join t4 as price01 onprice01.lbsiid = t4.lbsiid andprice01.ltradingmodeid = 1 andt4.ltradingareaid = price01.ltradingareaid;end|call bug8849()|call bug8849()|call bug8849()|drop procedure bug8849|drop tables t3,t4,t5|drop procedure if exists bug8937|create procedure bug8937()begindeclare s,x,y,z int;declare a float;select sum(data),avg(data),min(data),max(data) into s,x,y,z from t1;select s,x,y,z;select avg(data) into a from t1;select a;end|delete from t1|insert into t1 (data) values (1), (2), (3), (4), (6)|call bug8937()|s	x	y	z16	3	1	6a3.2drop procedure bug8937|delete from t1|drop procedure if exists bug6900|drop procedure if exists bug9074|drop procedure if exists bug6900_9074|create table t3 (w char unique, x char)|insert into t3 values ('a', 'b')|create procedure bug6900()begindeclare exit handler for sqlexception select '1';begindeclare exit handler for sqlexception select '2';insert into t3 values ('x', 'y', 'z');end;end|create procedure bug9074()begindeclare x1, x2, x3, x4, x5, x6 int default 0;begin    declare continue handler for sqlstate '23000' set x5 = 1;      insert into t3 values ('a', 'b');      set x6 = 1;      end;begin1_label:begindeclare continue handler for sqlstate '23000' set x1 = 1;      insert into t3 values ('a', 'b');      set x2 = 1;      begin2_label:begin  declare exit handler for sqlstate '23000' set x3 = 1;         set x4= 1;         insert into t3 values ('a','b');set x4= 0;end begin2_label;end begin1_label;select x1, x2, x3, x4, x5, x6;end|create procedure bug6900_9074(z int)begindeclare exit handler for sqlstate '23000' select '23000';begindeclare exit handler for sqlexception select 'sqlexception';if z = 1 theninsert into t3 values ('a', 'b');elseinsert into t3 values ('x', 'y', 'z');end if;end;end|call bug6900()|22call bug9074()|x1	x2	x3	x4	x5	x61	1	1	1	1	1call bug6900_9074(0)|sqlexceptionsqlexceptioncall bug6900_9074(1)|2300023000drop procedure bug6900|drop procedure bug9074|drop procedure bug6900_9074|drop table t3|drop procedure if exists avg|create procedure avg ()beginend|call avg ()|drop procedure avg|drop procedure if exists bug6129|set @old_mode= @@sql_mode;set @@sql_mode= "ERROR_FOR_DIVISION_BY_ZERO";create procedure bug6129()select @@sql_mode|call bug6129()|@@sql_modeERROR_FOR_DIVISION_BY_ZEROset @@sql_mode= "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO"|call bug6129()|@@sql_modeERROR_FOR_DIVISION_BY_ZEROset @@sql_mode= "NO_ZERO_IN_DATE"|call bug6129()|@@sql_modeERROR_FOR_DIVISION_BY_ZEROset @@sql_mode=@old_mode;drop procedure bug6129|drop procedure if exists bug9856|create procedure bug9856()begindeclare v int;declare c cursor for select data from t1;declare exit handler for sqlexception, not found select '16';open c;fetch c into v;select v;end|delete from t1|call bug9856()|1616call bug9856()|1616drop procedure bug9856|drop procedure if exists bug9674_1|drop procedure if exists bug9674_2|create procedure bug9674_1(out arg int)begindeclare temp_in1 int default 0;declare temp_fl1 int default 0;set temp_in1 = 100;set temp_fl1 = temp_in1/10;set arg = temp_fl1;end|create procedure bug9674_2()begindeclare v int default 100;select v/10;end|call bug9674_1(@sptmp)|call bug9674_1(@sptmp)|select @sptmp|@sptmp10call bug9674_2()|v/1010.0000call bug9674_2()|v/1010.0000drop procedure bug9674_1|drop procedure bug9674_2|drop procedure if exists bug9598_1|drop procedure if exists bug9598_2|create procedure bug9598_1(in var_1 char(16),out var_2 integer, out var_3 integer)beginset var_2 = 50;set var_3 = 60;end|create procedure bug9598_2(in v1 char(16),in v2 integer,in v3 integer,in v4 integer,in v5 integer)beginselect v1,v2,v3,v4,v5;call bug9598_1(v1,@tmp1,@tmp2);select v1,v2,v3,v4,v5;end|call bug9598_2('Test',2,3,4,5)|v1	v2	v3	v4	v5Test	2	3	4	5v1	v2	v3	v4	v5Test	2	3	4	5select @tmp1, @tmp2|@tmp1	@tmp250	60drop procedure bug9598_1|drop procedure bug9598_2|drop procedure if exists bug9902|create function bug9902() returns int(11)beginset @x = @x + 1;return @x;end|set @qcs1 = @@query_cache_size|set global query_cache_size = 100000|set @x = 1|insert into t1 values ("qc", 42)|select bug9902() from t1|bug9902()2select bug9902() from t1|bug9

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -