Search code examples
oracletextblockcomments

oracle: what is the oracle equivalent data type for COMMENT?


What is the datatype in oracle i should be using to store comment boxes? I was going to use LONG but it only allows one. Or should I just use VARCHAR2 and set it really large?


Solution

  • What is the longest comment you want to be able to support?

    If your comments are less than 4000 bytes in length, you can use a VARCHAR2(4000). If your comments are longer than 4000 bytes in length, you can use a CLOB. A CLOB can store any character data supported by your database character set.