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

📄 sp.result

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 RESULT
📖 第 1 页 / 共 5 页
字号:
create procedure bug2460_2()begindrop table if exists t3;create temporary table t3 (s1 int);insert into t3 select 1 union select 1;end|call bug2460_2()|call bug2460_2()|select * from t3|s11drop procedure bug2460_1|drop procedure bug2460_2|drop table t3|set @@sql_mode = ''|drop procedure if exists bug2564_1|create procedure bug2564_1()comment 'Joe''s procedure'  insert into `t1` values ("foo", 1)|set @@sql_mode = 'ANSI_QUOTES'|drop procedure if exists bug2564_2|create procedure bug2564_2()insert into "t1" values ('foo', 1)|set @@sql_mode = ''$drop function if exists bug2564_3$create function bug2564_3(x int, y int) returns intreturn x || y$set @@sql_mode = 'ANSI'$drop function if exists bug2564_4$create function bug2564_4(x int, y int) returns intreturn x || y$set @@sql_mode = ''|show create procedure bug2564_1|Procedure	sql_mode	Create Procedurebug2564_1		CREATE DEFINER=`root`@`localhost` PROCEDURE `bug2564_1`()    COMMENT 'Joe''s procedure'insert into `t1` values ("foo", 1)show create procedure bug2564_2|Procedure	sql_mode	Create Procedurebug2564_2	ANSI_QUOTES	CREATE DEFINER="root"@"localhost" PROCEDURE "bug2564_2"()insert into "t1" values ('foo', 1)show create function bug2564_3|Function	sql_mode	Create Functionbug2564_3		CREATE DEFINER=`root`@`localhost` FUNCTION `bug2564_3`(x int, y int) RETURNS int(11)return x || yshow create function bug2564_4|Function	sql_mode	Create Functionbug2564_4	REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI	CREATE DEFINER="root"@"localhost" FUNCTION "bug2564_4"(x int, y int) RETURNS int(11)return x || ydrop procedure bug2564_1|drop procedure bug2564_2|drop function bug2564_3|drop function bug2564_4|drop function if exists bug3132|create function bug3132(s char(20)) returns char(50)return concat('Hello, ', s, '!')|select bug3132('Bob') union all select bug3132('Judy')|bug3132('Bob')Hello, Bob!Hello, Judy!drop function bug3132|drop procedure if exists bug3843|create procedure bug3843()analyze table t1|call bug3843()|Table	Op	Msg_type	Msg_texttest.t1	analyze	status	OKcall bug3843()|Table	Op	Msg_type	Msg_texttest.t1	analyze	status	Table is already up to dateselect 1+2|1+23drop procedure bug3843|create table t3 ( s1 char(10) )|insert into t3 values ('a'), ('b')|drop procedure if exists bug3368|create procedure bug3368(v char(10))beginselect group_concat(v) from t3;end|call bug3368('x')|group_concat(v)x,xcall bug3368('yz')|group_concat(v)yz,yzdrop procedure bug3368|drop table t3|create table t3 (f1 int, f2 int)|insert into t3 values (1,1)|drop procedure if exists bug4579_1|create procedure bug4579_1 ()begindeclare sf1 int;select f1 into sf1 from t3 where f1=1 and f2=1;update t3 set f2 = f2 + 1 where f1=1 and f2=1;call bug4579_2();end|drop procedure if exists bug4579_2|create procedure bug4579_2 ()beginend|call bug4579_1()|call bug4579_1()|Warnings:Warning	1329	No data - zero rows fetched, selected, or processedcall bug4579_1()|Warnings:Warning	1329	No data - zero rows fetched, selected, or processeddrop procedure bug4579_1|drop procedure bug4579_2|drop table t3|drop procedure if exists bug2773|create function bug2773() returns int return null|create table t3 as select bug2773()|show create table t3|Table	Create Tablet3	CREATE TABLE `t3` (  `bug2773()` int(11) default NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1drop table t3|drop function bug2773|drop procedure if exists bug3788|create function bug3788() returns date return cast("2005-03-04" as date)|select bug3788()|bug3788()2005-03-04drop function bug3788|create function bug3788() returns binary(1) return 5|select bug3788()|bug3788()5drop function bug3788|create table t3 (f1 int, f2 int, f3 int)|insert into t3 values (1,1,1)|drop procedure if exists bug4726|create procedure bug4726()begindeclare tmp_o_id INT;declare tmp_d_id INT default 1;while tmp_d_id <= 2 dobeginselect f1 into tmp_o_id from t3 where f2=1 and f3=1;set tmp_d_id = tmp_d_id + 1;end;end while;end|call bug4726()|call bug4726()|call bug4726()|drop procedure bug4726|drop table t3|drop procedure if exists bug4902|create procedure bug4902()beginshow charset like 'foo';show collation like 'foo';show column types;show create table t1;show create database test;show databases like 'foo';show errors;show columns from t1;show keys from t1;show open tables like 'foo';show privileges;show status like 'foo';show tables like 'foo';show variables like 'foo';show warnings;end|call bug4902()|Charset	Description	Default collation	MaxlenCollation	Charset	Id	Default	Compiled	SortlenType	Size	Min_Value	Max_Value	Prec	Scale	Nullable	Auto_Increment	Unsigned	Zerofill	Searchable	Case_Sensitive	Default	Commenttinyint	1	-128	127	0	0	YES	YES	NO	YES	YES	NO	NULL,0	A very small integertinyint unsigned	1	0	255	0	0	YES	YES	YES	YES	YES	NO	NULL,0	A very small integerTable	Create Tablet1	CREATE TABLE `t1` (  `id` char(16) NOT NULL default '',  `data` int(11) NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1Database	Create Databasetest	CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */Database (foo)Level	Code	MessageField	Type	Null	Key	Default	Extraid	char(16)	NO			data	int(11)	NO			Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	CommentDatabase	Table	In_use	Name_lockedPrivilege	Context	CommentAlter	Tables	To alter the tableAlter routine	Functions,Procedures	To alter or drop stored functions/proceduresCreate	Databases,Tables,Indexes	To create new databases and tablesCreate routine	Functions,Procedures	To use CREATE FUNCTION/PROCEDURECreate temporary tables	Databases	To use CREATE TEMPORARY TABLECreate view	Tables	To create new viewsCreate user	Server Admin	To create new usersDelete	Tables	To delete existing rowsDrop	Databases,Tables	To drop databases, tables, and viewsExecute	Functions,Procedures	To execute stored routinesFile	File access on server	To read and write files on the serverGrant option	Databases,Tables,Functions,Procedures	To give to other users those privileges you possessIndex	Tables	To create or drop indexesInsert	Tables	To insert data into tablesLock tables	Databases	To use LOCK TABLES (together with SELECT privilege)Process	Server Admin	To view the plain text of currently executing queriesReferences	Databases,Tables	To have references on tablesReload	Server Admin	To reload or refresh tables, logs and privilegesReplication client	Server Admin	To ask where the slave or master servers areReplication slave	Server Admin	To read binary log events from the masterSelect	Tables	To retrieve rows from tableShow databases	Server Admin	To see all databases with SHOW DATABASESShow view	Tables	To see views with SHOW CREATE VIEWShutdown	Server Admin	To shut down the serverSuper	Server Admin	To use KILL thread, SET GLOBAL, CHANGE MASTER, etc.Update	Tables	To update existing rowsUsage	Server Admin	No privileges - allow connect onlyVariable_name	ValueTables_in_test (foo)Variable_name	ValueLevel	Code	Messagecall bug4902()|Charset	Description	Default collation	MaxlenCollation	Charset	Id	Default	Compiled	SortlenType	Size	Min_Value	Max_Value	Prec	Scale	Nullable	Auto_Increment	Unsigned	Zerofill	Searchable	Case_Sensitive	Default	Commenttinyint	1	-128	127	0	0	YES	YES	NO	YES	YES	NO	NULL,0	A very small integertinyint unsigned	1	0	255	0	0	YES	YES	YES	YES	YES	NO	NULL,0	A very small integerTable	Create Tablet1	CREATE TABLE `t1` (  `id` char(16) NOT NULL default '',  `data` int(11) NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1Database	Create Databasetest	CREATE DATABASE `test` /*!40100 DEFAULT CHARACTER SET latin1 */Database (foo)Level	Code	MessageField	Type	Null	Key	Default	Extraid	char(16)	NO			data	int(11)	NO			Table	Non_unique	Key_name	Seq_in_index	Column_name	Collation	Cardinality	Sub_part	Packed	Null	Index_type	CommentDatabase	Table	In_use	Name_lockedPrivilege	Context	CommentAlter	Tables	To alter the tableAlter routine	Functions,Procedures	To alter or drop stored functions/proceduresCreate	Databases,Tables,Indexes	To create new databases and tablesCreate routine	Functions,Procedures	To use CREATE FUNCTION/PROCEDURECreate temporary tables	Databases	To use CREATE TEMPORARY TABLECreate view	Tables	To create new viewsCreate user	Server Admin	To create new usersDelete	Tables	To delete existing rowsDrop	Databases,Tables	To drop databases, tables, and viewsExecute	Functions,Procedures	To execute stored routinesFile	File access on server	To read and write files on the serverGrant option	Databases,Tables,Functions,Procedures	To give to other users those privileges you possessIndex	Tables	To create or drop indexesInsert	Tables	To insert data into tablesLock tables	Databases	To use LOCK TABLES (together with SELECT privilege)Process	Server Admin	To view the plain text of currently executing queriesReferences	Databases,Tables	To have references on tablesReload	Server Admin	To reload or refresh tables, logs and privilegesReplication client	Server Admin	To ask where the slave or master servers areReplication slave	Server Admin	To read binary log events from the masterSelect	Tables	To retrieve rows from tableShow databases	Server Admin	To see all databases with SHOW DATABASESShow view	Tables	To see views with SHOW CREATE VIEWShutdown	Server Admin	To shut down the serverSuper	Server Admin	To use KILL thread, SET GLOBAL, CHANGE MASTER, etc.Update	Tables	To update existing rowsUsage	Server Admin	No privileges - allow connect onlyVariable_name	ValueTables_in_test (foo)Variable_name	ValueLevel	Code	Messagedrop procedure bug4902|drop procedure if exists bug4904|create procedure bug4904()begindeclare continue handler for sqlstate 'HY000' begin end;create table t2 as select * from t3;end|call bug4904()|ERROR 42S02: Table 'test.t3' doesn't existdrop procedure bug4904|create table t3 (s1 char character set latin1, s2 char character set latin2)|drop procedure if exists bug4904|create procedure bug4904 ()begindeclare continue handler for sqlstate 'HY000' begin end;select s1 from t3 union select s2 from t3; end|call bug4904()|drop procedure bug4904|drop table t3|drop procedure if exists bug336|create procedure bug336(out y int)begindeclare x int;set x = (select sum(t.data) from test.t1 t);set y = x;end|insert into t1 values ("a", 2), ("b", 3)|call bug336(@y)|select @y|@y5delete 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 - zero rows fetched, selected, or processedcall bug7743("anotherword")|var2call bug7743("AnotherWord")|varNULLWarnings:Warning	1329	No data - zero rows fetched, selected, or processeddrop 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)|useridcal

⌨️ 快捷键说明

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