# table name and column length limits

**URL:** <https://forum.servoy.com/t/table-name-and-column-length-limits/7363>\
**Category:** Classic Servoy\
**Created:** [April 18, 2007, 12:34pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363 "2007-04-18T12:34:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 18, 2007, 12:34pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/1 "2007-04-18T12:34:21Z")

</div>

Hi

for portability reasons I am interested in hearing about table name and column length limits, especially of PostgreSQL, MySQL and (the next version of) Oracle. Has anybody a list of databases and the above mentioned limits associated with the db. Does anybody know if there is still the 30 character limit on table name? What is the current column length limit?  
By the way, are there any length limit problems to deal with on relationship names on the various db’s?

Thanks for support!

Best regards, Robert

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 18, 2007, 1:05pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/2 "2007-04-18T13:05:01Z")

</div>

Oracle (at least) has a limit of 30. I don’t know of any plans to change that.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 18, 2007, 2:02pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/3 "2007-04-18T14:02:25Z")

</div>

Hi patrick

What about the columnname length limit in 10g? (Unfortunatly, I have no access to an Oracle db at the moment).

These limits disappeared in OS’es, so we (hopefully) have a good chance they disappear in DBes, too.  
There exists the Beta 11g. Are you trying this already?

Best regards, Robert

> patrick:  
> Oracle (at least) has a limit of 30. I don’t know of any plans to change that.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 18, 2007, 2:06pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/4 "2007-04-18T14:06:33Z")

</div>

No, but you can be pretty sure that for the next 10 years they will have this limit…

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 18, 2007, 2:25pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/5 "2007-04-18T14:25:39Z")

</div>

Yeahh, I can easily agree with you, as I worked many many years with Oracle DBs (I even can’t remember which version I started with, but I think 4 or 5) and Oracle CASE Tools and Oracle CASE\*Method.

Still, Richard Barker from Oracle wrote one of the best book about Entity Relationship Modelling (in my opinion), first printed in 1989.

Regards, Robert

> patrick:  
> No, but you can be pretty sure that for the next 10 years they will have this limit…

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [April 18, 2007, 2:57pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/6 "2007-04-18T14:57:15Z")

</div>

Hi Robert,

PostgreSQL 8.x uses a 63 character limit (NAMEDATALEN-1) on keywords and identifiers.  
(See first paragraph under chapter 4.1.1 at [http://www.postgresql.org/docs/8.2/stat … xical.html](http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html))  
But if you want you can rebuild the server to use any length you want by changing the NAMEDATALEN in the source.

MySQL seems to have a 64 character limit for databases, tables, columns and indices. Aliases can be 256 characters.  
At least that is what I can find on the web (but not on the MySQL website)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Robert\_Huber](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Robert\_Huber](https://forum.servoy.com/u/Robert_Huber)\
**Post date:** [April 18, 2007, 3:42pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/7 "2007-04-18T15:42:30Z")

</div>

Hi Robert

Thanks for your answer. My longest column names are (at the moment) 64 characters (just by accident that they have these length).

Best regards, Robert

> ROCLASI:  
> Hi Robert,
> 
> PostgreSQL 8.x uses a 63 character limit (NAMEDATALEN-1) on keywords and identifiers.  
> (See first paragraph under chapter 4.1.1 at [http://www.postgresql.org/docs/8.2/stat … xical.html](http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html))  
> But if you want you can rebuild the server to use any length you want by changing the NAMEDATALEN in the source.
> 
> MySQL seems to have a 64 character limit for databases, tables, columns and indexes. Aliases can be 256 characters.  
> At least that is what I can find on the web (but not on the MySQL website)
> 
> Hope this helps.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [April 18, 2007, 3:50pm UTC](https://forum.servoy.com/t/table-name-and-column-length-limits/7363/8 "2007-04-18T15:50:46Z")

</div>

Special mySQL gimmick: table names are case sensitive (column names are not)!
