Можете да използвате generated columns
(MySQL 5.7.6+):
CREATE TABLE members(
...,
ewallet DECIMAL(14,4) AS (0.75 * payment)
);
Можете да използвате generated columns
(MySQL 5.7.6+):
CREATE TABLE members(
...,
ewallet DECIMAL(14,4) AS (0.75 * payment)
);