About Delimitation |
Any character may be used to separate values in a text file, but the most common delimiters are the comma, quote, and colon. The vertical bar (or "pipe"), space, and tab are also sometimes used.
Comma-separated values might look like this:
Size,Weight,Length,Width,Depth
Quote-separated values might look like this:
"Size""Weight""Length""Width""Depth"
Colon-separated values might look like this:
Size:Weight:Length:Width:Depth
The following sample quote and comma delimited database uses a column header. Values are enclosed in quotation marks and separated by commas. Each line of data is separated by a newline. A newline is simply a special character or sequence of characters signifying the end of a line of text and the start of a new line. In this case, the newlines are carriage returns.
"FirstName","LastName","Age","Class","Alternate"
"Jane","Wong","13","Art","Creative Writing"
"Mike","Charles","14","Film","Art"
"Roxy","Doge","13","Ceramics","Art"
"Tony","Biggs","14","Creative Writing","Film"
The first line of the above database, the column header, defines the first and last names of a student, the student's age, the class they've chosen, and the alternate class they've chosen.
The entries below the column header are the database records. They contain the students' actual information.
You can select an alternative delimitation method for an existing database if the need arises.
To select an alternative delimitation method
Related Topics