mysql 虚拟列
创建表
CREATE TABLE `date_virtual_test` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255),
`buy_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
`buy_day` int(9) GENERATED AL
mysql 虚拟列
创建表
CREATE TABLE `date_virtual_test` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255),
`buy_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '时间',
`buy_day` int(9) GENERATED AL