テーブル名インデックス名カラム名の最大長

(8.0.22)
https://dev.mysql.com/doc/refman/5.6/ja/identifiers.html


64

drop table tab1234567890123456789012345678901234567890123456789012345678901;
create table tab1234567890123456789012345678901234567890123456789012345678901(col1234567890123456789012345678901234567890123456789012345678901 int);
create index ind1234567890123456789012345678901234567890123456789012345678901 on tab1234567890123456789012345678901234567890123456789012345678901(col1234567890123456789012345678901234567890123456789012345678901);


create table tab1234567890123456789012345678901234567890123456789012345678901x(col1234567890123456789012345678901234567890123456789012345678901 int);
create table tab1234567890123456789012345678901234567890123456789012345678901(col1234567890123456789012345678901234567890123456789012345678901x int);
create index ind1234567890123456789012345678901234567890123456789012345678901x on tab1234567890123456789012345678901234567890123456789012345678901(col1234567890123456789012345678901234567890123456789012345678901);

 

(19c)

※12cR2から

128

drop table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 purge;
create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 int);
create index ind12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 on tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345);

create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 int);
create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x int);
create index ind12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x on tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345);

 

(13)
https://www.postgresql.jp/document/9.6/html/sql-syntax-lexical.html

63

drop table tab123456789012345678901234567890123456789012345678901234567890;
create table tab123456789012345678901234567890123456789012345678901234567890(col123456789012345678901234567890123456789012345678901234567890 int);
create index ind123456789012345678901234567890123456789012345678901234567890 on tab123456789012345678901234567890123456789012345678901234567890(col123456789012345678901234567890123456789012345678901234567890);


create table tab123456789012345678901234567890123456789012345678901234567890x(col123456789012345678901234567890123456789012345678901234567890 int);
create table tab123456789012345678901234567890123456789012345678901234567890(col123456789012345678901234567890123456789012345678901234567890x int);
create index ind123456789012345678901234567890123456789012345678901234567890x on tab123456789012345678901234567890123456789012345678901234567890(col123456789012345678901234567890123456789012345678901234567890);

 

 

(2019)
https://docs.microsoft.com/ja-jp/previous-versions/sql/compact/sql-server-compact-4.0/ms172451(v=sql.110)

128

drop table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345;
create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 int);
create index ind12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 on tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345);

create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345 int);
create table tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x int);
create index ind12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345x on tab12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345(col12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345);