1. Add fields: alter table table name ADD field name type; eg: alter table sys_cwzd ADD SCCLLJ VARCHAR2(50); 2. Add remarks: comment on column table name. Field name is 'remark name'; eg: comment on column sys_cwzd.SCCLLJ is 'Upload material path'; Content extension: Add a new field: alter table bulletin add citycode varchar(6) not null default 0; # city code 1. Set the encoding when creating the database create database test character set utf8; 2. Set the encoding when creating a table create table test(id int primary key)DEFAULT charset=utf8; 3. Modify the database encoding alter database test character set utf8; 4. Modify the default encoding of the table alter table test character set utf8; You may also be interested in:
|
<<: Detailed explanation of Vue's methods and properties
>>: CentOS 6 uses Docker to deploy Zookeeper operation example
【author】 Liu Bo: Senior Database Manager at Ctrip...
Common application scenarios The interfaces of cu...
This article example shares the specific code of ...
Table of contents 1. Common mistakes made by begi...
Table of contents origin status quo Cancel reques...
In MySQL, you can specify multiple indexes for a ...
Quickly install the tensorflow environment in Doc...
1. Before configuring the IP address, first use i...
Table of contents 1. Variables Use meaningful nam...
Preface Everyone should be familiar with the watc...
In the process of using Vue to develop projects, ...
When installing FileZilla Server on the server, t...
Next, I will install Java+Tomcat on Centos7. Ther...
Table of contents Preface Two-dimensional array, ...
Preface We already know that MySQL uses the SQL S...