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;
8
DROP DATABASE IF EXISTS tpcb;
11
SET BINLOG_FORMAT = 'ROW';
12
CREATE TABLE account (
15
balance decimal(10,2),
19
SHOW CREATE TABLE account;
21
account CREATE TABLE `account` (
22
`id` int(11) NOT NULL DEFAULT '0',
23
`bid` int(11) DEFAULT NULL,
24
`balance` decimal(10,2) DEFAULT NULL,
27
) ENGINE=Falcon DEFAULT CHARSET=latin1
28
INSERT INTO account VALUES (1, 2, 1.2, "FRESH ACCOUNT");
29
INSERT INTO account VALUES (2, 5, 1.2, "FRESH ACCOUNT");
30
INSERT INTO account VALUES (3, 2, 1.2, "FRESH ACCOUNT");
31
INSERT INTO account VALUES (4, 2, 1.2, "FRESH ACCOUNT");
32
SELECT * FROM account;
34
1 2 1.20 FRESH ACCOUNT
35
2 5 1.20 FRESH ACCOUNT
36
3 2 1.20 FRESH ACCOUNT
37
4 2 1.20 FRESH ACCOUNT
40
SELECT * FROM account;
42
1 2 1.20 FRESH ACCOUNT
43
2 5 1.20 FRESH ACCOUNT
44
3 2 1.20 FRESH ACCOUNT
45
4 2 1.20 FRESH ACCOUNT
47
UPDATE account SET balance = 3.5 WHERE id = 3;
48
UPDATE account SET filler = 'Updated' WHERE id = 2;
49
UPDATE account SET balance = 9.2, bid = 21,
50
filler = 'Updated' WHERE id = 4;
51
SELECT * FROM account;
53
1 2 1.20 FRESH ACCOUNT
55
3 2 3.50 FRESH ACCOUNT
58
SELECT * FROM account;
60
1 2 1.20 FRESH ACCOUNT
62
3 2 3.50 FRESH ACCOUNT