Answer the question
In order to leave comments, you need to log in
How to create a column that will be the product of two others?
I tried to do this for a long time, it turns out only to withdraw a, I can’t assign
Answer the question
In order to leave comments, you need to log in
Why add something when you can count?
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;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question