Reputation: 175
I am new to PostgresSQL and using pgadmin4 on my Windows machine, While creating tables came across datatypes like- char
and char[]
and also char Varying
and char Varying[]
.
I want to know is there a method by which I can create an attribute name specifying the datatype but not length?
Upvotes: 0
Views: 55
Reputation: 246403
Yes: use the text
data type. It performs just as well and has no length limit (there is an absolute size limit of 1GB though).
Upvotes: 0