Current Path : /usr/opt/mysql57/mysql-test/suite/ndbcluster/ |
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 |
Current File : //usr/opt/mysql57/mysql-test/suite/ndbcluster/basic.test |
--source include/have_ndb.inc # # The very basic test # - showing table can be created in the storage engine NDB # - read and write the table # CREATE TABLE t1 ( a int PRIMARY KEY, b varchar(255) ) ENGINE = NDB; INSERT INTO t1 VALUES (1, "MySQL Server with NDB"); INSERT INTO t1 (a, b) VALUES (11, "Barrier effect"); INSERT INTO t1 (a, b) VALUES (12, "The third row"), (37, "And of course number 37"); SELECT * FROM t1 WHERE a = 1; UPDATE t1 SET b = CONCAT(b, " test") WHERE a = 1; SELECT * FROM t1 WHERE a = 1; REPLACE t1 (a, b) VALUES (12, "Another layer"); SELECT * FROM t1 WHERE a = 12 ORDER BY a; DELETE FROM t1 WHERE a = 11; SELECT COUNT(*) FROM t1; SELECT b FROM t1 WHERE b LIKE "MySQL%"; DELETE FROM t1 ORDER BY b DESC; DROP TABLE t1;