CREATE TABLE `test`.`test_table` (
`id` INT NOT NULL,
`price` INT NULL,
`count` INT NULL,
PRIMARY KEY (`id`));
SELECT id, price, count, (price * count) as total FROM test.test_table;
CREATE TABLE orders (
price DOUBLE,
amount DOUBLE,
total DOUBLE AS (price * amount)
);