sqlite column type
A sqlite column type represents the SQLite data-type of a column.
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Creation
Returns the type of the nth column of the table. The first column is column 0.
- Q: column type 0 of table "Album" of sqlite database of file "chinook.db"
- A: AlbumId: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Returns the type of the column with the specified name.
- Q: column type "Title" of table "Album" of sqlite database of file "chinook.db"
- A: Title: SQLITE_TEXT
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Returns the name and type of all the columns of table.
Warning: This property only inspects the first row of a "SELECT *" from the current table. Although the column name aspect will always be accurate, the data type may show SQLITE_NULL instead of another data type depending on whether the first row contains or does not contain null values. This is due to the fact that the SQLite API must manually inspect a single cell to obtain the SQLite data type. The creator of the table may not have inserted any values to the cell, leaving it SQLITE_NULL.
- Q: column types of table "Album" of sqlite database of file "chinook.db"
- A: AlbumId: SQLITE_INTEGER
- A: Title: SQLITE_TEXT
- A: ArtistId: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Returns one of the five sqlite datat types in a string form. The five types are as follows:
SQLITE_INTEGERSQLITE_FLOATSQLITE_TEXTSQLITE_BLOBSQLITE_NULL
- Q: types of columns 0 of rows of statement "select ArtistId, Name from Artist limit 5" of sqlite database of file "chinook.db"
- A: ArtistId: SQLITE_INTEGER
- A: ArtistId: SQLITE_INTEGER
- A: ArtistId: SQLITE_INTEGER
- A: ArtistId: SQLITE_INTEGER
- A: ArtistId: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Properties
Returns True if the column type is SQLITE_INTEGER.
- Q: column types whose (integer of it) of table "Album" of sqlite database of file "chinook.db"
- A: AlbumId: SQLITE_INTEGER
- A: ArtistId: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Returns True if the column type is SQLITE_TEXT.
- Q: column types whose (text of it) of table "Album" of sqlite database of file "chinook.db"
- A: Title: SQLITE_TEXT
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Returns the data-type of the column.
- Q: types of column types of table "Album" of sqlite database of file "chinook.db"
- A: SQLITE_INTEGER
- A: SQLITE_TEXT
- A: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |
Casts
Returns the column as name: type.
- Q: column types of table "Album" of sqlite database of file "chinook.db" as string
- A: AlbumId: SQLITE_INTEGER
- A: Title: SQLITE_TEXT
- A: ArtistId: SQLITE_INTEGER
| Version | Platforms |
|---|---|
| 9.0.586.0 | AIX, Debian, HP-UX, Mac, Red Hat, SUSE, Solaris, Ubuntu, Windows |
| 9.5.13.130 | Raspbian |