SQL to add column and comment in table in single command

后端 未结 4 2073
谎友^
谎友^ 2021-02-11 13:08

I am using Oracle 11g for my web application. I want to add a column and a comment to an existing table. I can do that easily with the below commands

ALTER TABLE         


        
4条回答
  •  野的像风
    2021-02-11 13:32

    Query to add column with comment are :

    alter table table_name 
    add( "NISFLAG"    NUMBER(1,0) )
    
    comment on column "ELIXIR"."PRD_INFO_1"."NISPRODGSTAPPL" is 'comment here'
    
    commit;
    

提交回复
热议问题