Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Maximum length allowed for column name, index name and table name?

Hi,

I want to know what is the maximum length allowed for coulmn name, table name and index name in MaxDB ?

Regards

Raj

replied

Hi Raja,

simply check the catalog:

sqlcli bwt=> \dc domain.columns
Table "DOMAIN.COLUMNS"
| Column Name      | Type         | Length | Nullable | KEYPOS |
| ---------------- | ------------ | ------ | -------- | ------ |
| SCHEMANAME       | CHAR UNICODE | 32     | YES      |        |
| OWNER            | CHAR UNICODE | 32     | YES      |        |
| TABLENAME        | CHAR UNICODE | 32     | YES      |        |
| COLUMNNAME       | CHAR UNICODE | 32     | YES      |        |
[...]

and

sqlcli bwt=> \dc domain.indexes
Table "DOMAIN.INDEXES"
| Column Name        | Type         | Length | Nullable | KEYPOS |
| ------------------ | ------------ | ------ | -------- | ------ |
| SCHEMANAME         | CHAR UNICODE | 32     | YES      |        |
| OWNER              | CHAR UNICODE | 32     | YES      |        |
| TABLENAME          | CHAR UNICODE | 32     | YES      |        |
| INDEXNAME          | CHAR UNICODE | 32     | YES      |        | 

regards,

Lars

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question