Using Varchar
Posted in 2000
Topics: Data Types & Schema Design
Is there any limitation on using the datatype varchar? Can we use it in any former char columns or only for those column that have more than a certain number of chars? Thanks for your help, ---------------------------------------------------------------------------- -------- Nuno Andr' Coimbra - Portugal Email: na.airc@esoterica.pt
Nuno Andr' (na.airc@esoterica.pt) wrote: : Is there any limitation on using the datatype varchar? : Can we use it in any former char columns or only for those column that have : more than a certain number of chars? : Thanks for your help, Sure, limited to 255 bytes. Otherwise you _can_ use it on a column that was defined as a char(<255) but it may not perform as quickly. If you are on 9.2 or better you get lvarchar (which gives you a whoooole bunch of characters).