SQL to add column and comment in table in single command

后端 未结 4 2049
谎友^
谎友^ 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:25

    Add comments for two different columns of the EMPLOYEE table :

    COMMENT ON EMPLOYEE
         (WORKDEPT IS 'see DEPARTMENT table for names',
         EDLEVEL IS 'highest grade level passed in school' )
    

提交回复
热议问题