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 -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -