Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6914273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:19:34+00:00 2026-05-27T09:19:34+00:00

I am fairly new to SQLITE and I noticed that there are only a

  • 0

I am fairly new to SQLITE and I noticed that there are only a 4 datatypes but I see examples online where people are putting in their own datatypes. I don’t really understand this and was wondering if someone could explain that to me. For example I see a column that will hold a date and the datatype that was given was timestamp which does not exist. What does it default to? Does it default to a text when you make your own?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:19:35+00:00Added an answer on May 27, 2026 at 9:19 am

    sqlite3 uses a dynamic type system. There are only five storage classes:
    NULL, integer, real, text and blob. (Source: Datatypes In SQLite Version 3.)

    And, to quote that page:

    Any column in an SQLite version 3 database, except an INTEGER PRIMARY KEY column, may be used to store a value of any storage class.

    Apart from the integer primary key exception, SQLite doesn’t enforce types at all. Which means that the type name you put in your create table is purely informative.

    create table mytab (a apples, b bananas);
    

    is a valid create table statement. You can insert timestamps, text, blobs into both columns (not saying that you should, but you can).

    Look at the linked reference documentation for the type system for more information.

    sqlite> create table mytab (a apples, b bananas);
    sqlite> insert into mytab values (CURRENT_TIME, NULL);
    sqlite> insert into mytab values ('hello', 3.14159);
    sqlite> select * from mytab;
    14:59:18|
    hello|3.14159
    

    To answer your question directly: there is no default. A storage type is associated with each value stored in the database, not to columns of a table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Fairly new to database schema (plan to use SQLite). Having said that, I'm thinking
Fairly new to relational database and to sqlite. But I'm curious what's the best
I fairly new to JQuery and perhaps trying to achieve something that might be
I'm fairly new to the STL, so I was wondering whether there are any
I'm fairly new to the world of versioning but would like to introduce Subversion
I'm fairly new at programming, but I've wondered how shell text editors such as
I am fairly new to Objective C and iOS programming but am constantly trying
Fairly new to Google Maps API. I've got an array of data that I
Fairly new to socket programming, but I've been assigned with a whopper of project.
Fairly new to sqlite (and sql). For each row in a table, I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.