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

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

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

javascript - Chart.js - setting tooltip z-index -