Answered Questions

  • Question on Constraints

    I am new to Oracle. I have created one table in that one column name salary, while creating the table I have given the datatype for that column is varchar2 and also I have given not null constraint. Now I want to change the datatype varchar2 to number, Is it possible to alter the datatype when having constraint in table?

    Abhimanyu eati

    • Nov 17th, 2017

    Yes we can change datatype but make sure about size if you have created varchar(5) then alter to number(5)