Can Mysql5.7 not add comments to virtual columns? If so, how should I add it?

as the title

Mar.09,2022

mysql> create table test
    -> (id int,
    -> col int generated always as (id+1) stored comment "generated column"
    -> );
Query OK, 0 rows affected (0.04 sec)

mysql> show create table test\G
*************************** 1. row ***************************
       Table: test
Create Table: CREATE TABLE `test` (
  `id` int(11) DEFAULT NULL,
  `col` int(11) GENERATED ALWAYS AS ((`id` + 1)) STORED COMMENT 'generated column'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
1 row in set (0.00 sec)
Menu