database - Use unicode(255) for all column types in postgres? -
I do not understand when to use different lengths for calling Unicode. I am using UNODAD (255) for all my columns in my postgrege database such as address, name, description etc. Is not it foolish to do this?
Make sure what you mean by "Unicode (255)" - such data type in postgresqual Not:
# Make table (x unicode (255)); Error: Type "Unicode" does not exist LINE 1: Create table q (x Unicode (255)); ^
It may be that you mean the curse (255). In this case - ask me: What if you need 320 character description?
Personally I like to use text datatype - as the database usually does not care that the string is 100 or 1000 characters long.
Comments
Post a Comment