postgresql - postgres string type compatibility: varchar and character -


on postgresql database, i've declared string field as

character(n) 

now have function takes string argument

varchar(n) 

are 2 datatype compatible or should change type in function or in table declarement?

character types character(n) , varchar(n) compatible , internally same type (but have different representation, when queried).

details in this article


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

mysqli - Php Mysqli_fetch_assoc Error : "Warning: Illegal string offset 'name' in" -

c - "error: subscripted value is neither array nor pointer nor vector", but why? -