Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum table comment length for Oracle and SQL Server

What is the maximum length for a table comment in Oracle and SQL Server? For MySQL this is 60 chars.

like image 336
user1438023 Avatar asked Jun 05 '12 18:06

user1438023


People also ask

What is the maximum length of a table in Oracle?

For logical table names stored within an Entry table, you can have up to 40 characters. Form names are limited to 100 characters, which is also the Library manager limit on any file name. Section names are limited to 64 characters.

What is the max length of table and column in Oracle database?

The maximum length of the table and column name is 128 bytes or 128 characters.

How do I save more than 4000 characters in Oracle?

Oracle has a limit of 4000 bytes for a VARCHAR2 column and there is no way to workaround that limit. So you can only store 4000 characters in a VARCHAR2 column if you are using a single-byte characterset.


2 Answers

Oracle limit on comment size is 4000 characters.

like image 165
LiborStefek Avatar answered Oct 12 '22 11:10

LiborStefek


A quick google search lead to the comments being stored in user_tab_comments, so just check the size of that column in your DB.

like image 21
Limey Avatar answered Oct 12 '22 12:10

Limey