Varchar
Encyclopedia
A varchar or Variable Character Field is a set of character
data
of indeterminate length. The term varchar refers to a data type of a field (or column
) in a database management system
. Varchar fields can be of any size up to a limit, which varies by databases: an Oracle 9i
database has a limit of 4000 bytes, a MySQL
database has a limit of 65,535 bytes (for the entire row) and Microsoft SQL Server 2005
has a limit of 8000 bytes (unless varchar(max) is used, which has a maximum storage capacity of 2 gigabytes).
Character (computing)
In computer and machine-based telecommunications terminology, a character is a unit of information that roughly corresponds to a grapheme, grapheme-like unit, or symbol, such as in an alphabet or syllabary in the written form of a natural language....
data
Data
The term data refers to qualitative or quantitative attributes of a variable or set of variables. Data are typically the results of measurements and can be the basis of graphs, images, or observations of a set of variables. Data are often viewed as the lowest level of abstraction from which...
of indeterminate length. The term varchar refers to a data type of a field (or column
Column (database)
In the context of a relational database table, a column is a set of data values of a particular simple type, one for each row of the table. The columns provide the structure according to which the rows are composed....
) in a database management system
Database management system
A database management system is a software package with computer programs that control the creation, maintenance, and use of a database. It allows organizations to conveniently develop databases for various applications by database administrators and other specialists. A database is an integrated...
. Varchar fields can be of any size up to a limit, which varies by databases: an Oracle 9i
Oracle database
The Oracle Database is an object-relational database management system produced and marketed by Oracle Corporation....
database has a limit of 4000 bytes, a MySQL
MySQL
MySQL officially, but also commonly "My Sequel") is a relational database management system that runs as a server providing multi-user access to a number of databases. It is named after developer Michael Widenius' daughter, My...
database has a limit of 65,535 bytes (for the entire row) and Microsoft SQL Server 2005
Microsoft SQL Server
Microsoft SQL Server is a relational database server, developed by Microsoft: It is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network...
has a limit of 8000 bytes (unless varchar(max) is used, which has a maximum storage capacity of 2 gigabytes).