sql在乙個表中新增欄位並新增備註的方法

2022-09-25 04:09:08 字數 701 閱讀 8145

1、加欄位:

alter table 表名 add 欄位名 型別;

eg:alter table sys_cwzd add sccllj varchar2(50);

2、加備註:

comment on column 表名.欄位名 is '備註名';

eg:comment on column sys_cwww.cppcns.comwzd.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 databawww.cppcns.comse test character set utf8;

4.修改表預設編碼

alter table test character set utf8;

本文標題: sql在乙個表中新增欄位並新增備註的方法

本文位址: /shujuku/mysql/270152.html

sql建立乙個表並新增刪除字段

using system using system.collections.generic using system.componentmodel using system.data using system.drawing using system.linq using system.text u...

在 DataGridView中新增乙個統計行的技巧

dim mtalbe as new datatable mtalbe mbl.getlist pstrsql tables 0 dim dr as datarow mtalbe.newrow dr.item 0 mtalbe.rows.count dr.item 9 mtalbe.compute s...

怎麼在ubuntu中新增乙個使用者並賦予管理員許可權

用useradd時,並沒有建立同名的使用者主目錄。例子 adduser user1 這樣他就會自動建立使用者主目錄,建立使用者同名的組。root ubuntu sudo adduser db sudo password for xx 輸入xx使用者的密碼,出現如下資訊 正在新增使用者 db 正在新增...