Mysql method of setting attributes: execute the [ALTER TABLE [table name] CHANGE [old field name] [new field name] [attribute];] statement to set it.
Modify existing field names and attributes:
(Recommended tutorial: mysql video tutorial)
ALTER TABLE 【表名】 CHANGE 【老字段名】【新字段名】 【...属性】;
Example:
USE emoji; ALTER TABLE fincrm_employee CHANGE orgs test varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'test';
Related recommendations:mysql tutorial
The above is the detailed content of How to set properties in mysql. For more information, please follow other related articles on the PHP Chinese website!