2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
7
DROP PROCEDURE IF EXISTS test.p1;
8
DROP TABLE IF EXISTS test.t1;
9
CREATE TABLE test.t1 (a INT, blob_column LONGBLOB, vchar_column VARCHAR(100), PRIMARY KEY(a)) engine=myisam;
10
INSERT INTO test.t1 VALUES(1,UUID(),UUID());
11
create procedure test.p1()
13
INSERT INTO test.t1 VALUES(2,UUID(),UUID());
14
INSERT INTO test.t1 VALUES(3,UUID(),UUID());
17
create function test.fn1(x int)
20
insert into t1 values (4+x,UUID(),UUID());
21
insert into t1 values (5+x,UUID(),UUID());
27
create table t2 (a int) engine=myisam;
28
insert into t2 values(fn1(2));
29
SHOW CREATE TABLE test.t1;
31
t1 CREATE TABLE `t1` (
32
`a` int(11) NOT NULL DEFAULT '0',
33
`blob_column` longblob,
34
`vchar_column` varchar(100) DEFAULT NULL,
36
) ENGINE=MyISAM DEFAULT CHARSET=latin1
37
DROP PROCEDURE test.p1;
38
DROP FUNCTION test.fn1;