desc|describe table_name

 

DCL----column

----add

-- add one column
alter table product
add state varchar2(10);

-- add multiple columns
alter table product
add (state varchar2(2) default '0', names varchar2(100), age number);

 

----drop

-- drop one column
alter table product
drop column name;

-- drop multiple columns
alter table product
drop (names, state);

 

----modify

-- modify one column
alter table product
modify address date;

-- modify multiple columns
alter table product
modify (age varchar2(20), address int, mail date);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2022-02-25
  • 2022-12-23
  • 2021-11-25
猜你喜欢
  • 2021-06-02
  • 2021-12-13
  • 2022-12-23
  • 2021-07-22
  • 2021-10-26
  • 2022-02-06
  • 2021-06-24
相关资源
相似解决方案