9久久伊人精品综合,亚洲一区精品视频在线,成 人免费va视频,国产一区二区三区黄网,99国产精品永久免费视频,亚洲毛片多多影院,精品久久久无码人妻中文字幕,无码国产欧美一区二区三区不卡
學習啦>學習英語>專業英語>計算機英語>

數據庫中alter的用法

時間: 長思709 分享

  數據庫中alter的用法的用法你知道嗎?下面小編就跟你們詳細介紹下數據庫中alter的用法的用法,希望對你們有用。

  數據庫中alter的用法的用法如下:

  To add a column to an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  ADD column_name column-definition;

  For example:

  ALTER TABLE supplier

  ADD supplier_name varchar2(50);

  This will add a column called supplier_name to the supplier table.

  Syntax #2

  To add multiple columns to an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  ADD ( column_1 column-definition,

  column_2 column-definition,

  ...

  column_n column_definition );

  For example:

  ALTER TABLE supplier

  ADD ( supplier_name varchar2(50),

  city varchar2(45) );

  This will add two columns (supplier_name and city) to the supplier table.

  Modifying column(s) in a table

  Syntax #1

  To modify a column in an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  MODIFY column_name column_type;

  For example:

  ALTER TABLE supplier

  MODIFY supplier_name varchar2(100) not null;

  This will modify the column called supplier_name to be a data type of varchar2(100) and force the column to not allow null values.

  Syntax #2

  To modify multiple columns in an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  MODIFY ( column_1 column_type,

  column_2 column_type,

  ...

  column_n column_type );

  For example:

  ALTER TABLE supplier

  MODIFY ( supplier_name varchar2(100) not null,

  city varchar2(75) );

  This will modify both the supplier_name and city columns.

  Drop column(s) in a table

  Syntax #1

  To drop a column in an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  DROP COLUMN column_name;

  For example:

  ALTER TABLE supplier

  DROP COLUMN supplier_name;

  This will drop the column called supplier_name from the table called supplier.

  Rename column(s) in a table

  (NEW in Oracle 9i Release 2)

  Syntax #1

  Starting in Oracle 9i Release 2, you can now rename a column.

  To rename a column in an existing table, the ALTER TABLE syntax is:

  ALTER TABLE table_name

  RENAME COLUMN old_name to new_name;

  For example:

  ALTER TABLE supplier

  RENAME COLUMN supplier_name to sname;

  This will rename the column called supplier_name to sname.

數據庫中alter的用法

數據庫中alter的用法的用法你知道嗎?下面小編就跟你們詳細介紹下數據庫中alter的用法的用法,希望對你們有用。 數據庫中alter的用法的用法如下: To add a column to an existing table, the ALTER TABLE syntax is: ALTER TABLE table
推薦度:
點擊下載文檔文檔為doc格式
543128 主站蜘蛛池模板: 色吊丝二区三区中文字幕| 亚洲av产在线精品亚洲第一站| 东方四虎av在线观看| 一本久道久久综合久久鬼色| 啪啪av一区二区三区| 欧美一区二区三区在线观看| 午夜福利在线观看6080| 久久国产精品二国产人妻| 本免费Av无码专区一区| 中文熟妇人妻av在线| 国产亚洲精品VA片在线播放| 国产怡春院无码一区二区| 东京热无码国产精品| 欧美日韩精品一区二区三区不卡 | 一本大道无码av天堂| 国产中文字幕精品免费| av无码一区二区大桥久未| 18av千部影片| 野外做受三级视频| 国产69精品久久久久99尤物| 热99久久这里只有精品| 成人国产亚洲精品一区二| 国产a在视频线精品视频下载| 女人色熟女乱| 欧美肥老太牲交大战| 亚洲成人av综合一区| 日韩精品一二三黄色一级| 国产视色精品亚洲一区二区| 日本一区二区不卡精品| 国内熟女中文字幕第一页| 天天做天天爱夜夜爽女人爽| 亚洲不卡av不卡一区二区| 97久久精品人人澡人人爽| 少妇人妻偷人偷人精品| 美欧日韩一区二区三区视频| h动态图男女啪啪27报gif| 亚洲国产亚洲综合在线尤物| 亚洲成av人片乱码色午夜| 国产午夜影视大全免费观看| 亚洲激情在线一区二区三区| 久久热99这里只有精品|