SQL to add column and comment in table in single command

后端 未结 4 1876
無奈伤痛
無奈伤痛 2021-02-11 13:09

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:23

    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' )
    

提交回复
热议问题