0514-86177077
9:00-17:00(工作日)
1、加字段:
alter table 表名 ADD 字段名 類型;
eg:
alter table sys_cwzd ADD SCCLLJ VARCHAR2(50);
2、加備注:
comment on column 表名.字段名 is '備注名';
comment on column sys_cwzd.SCCLLJ is '上傳材料路徑';
內容擴展:
添加新字段:
alter table bulletin add citycode varchar(6) not null default 0; # 城市代碼
1.創建數據庫時設置編碼
create database test character set utf8;
2.創建表時設置編碼
create table test(id int primary key)DEFAULT charset=utf8;
3.修改數據庫編碼
alter database test character set utf8;
4.修改表默認編碼
alter table test character set utf8;
標簽:云浮 武威 白銀 聊城 湖南 湖北 烏海 臨汾
上一篇:CentOS7 64位下MySQL5.7安裝與配置教程
下一篇:MySql 快速插入千萬級大數據的方法示例
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8