Home >Database >Mysql Tutorial >How to set properties in mysql

How to set properties in mysql

王林
王林Original
2020-10-16 11:13:503190browse

Mysql method of setting attributes: execute the [ALTER TABLE [table name] CHANGE [old field name] [new field name] [attribute];] statement to set it.

How to set properties in mysql

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn