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

How to set properties in mysql

王林
Release: 2020-10-19 10:57:29
Original
3192 people have browsed it

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 【老字段名】【新字段名】 【...属性】;
Copy after login

Example:

USE emoji;
ALTER TABLE fincrm_employee CHANGE orgs test varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'test';
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template