mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
e0e0f9e3d4
Part V: performance schema implementation
16 lines
404 B
Text
16 lines
404 B
Text
SET @rowid = ROUND(RAND() * <num_stress_rows>);
|
|
START TRANSACTION;
|
|
UPDATE t1 SET b = 'changed' WHERE id=@rowid;
|
|
SELECT b FROM t1 WHERE id=@rowid;
|
|
b
|
|
changed
|
|
COMMIT;
|
|
START TRANSACTION;
|
|
DELETE FROM t1 WHERE id=@rowid;
|
|
INSERT INTO t1 (id, b) VALUES (@rowid, 'newly_inserted');
|
|
SELECT b FROM t1 WHERE id=@rowid;
|
|
b
|
|
newly_inserted
|
|
COMMIT;
|
|
CREATE TABLE tw_<conn_nr> AS SELECT * FROM t1;
|
|
DROP TABLE tw_<conn_nr>;
|