config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/perfschema/include/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/perfschema/include/prepared_stmts_setup.inc

#
# Creating various prepared statements. 
# HELPER include/prepared_stmts_setup.inc 
#

CREATE TABLE t1 (a INT NOT NULL);
INSERT INTO t1 VALUES (4), (8), (11), (32), (80);

# Prepared statments

PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse';

SET @table = 't1';
SET @s = CONCAT('SELECT * FROM ', @table);
PREPARE st2 FROM @s;

PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?';

PREPARE st4 FROM
  '(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a';

Man Man