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 151519
In Process

The Archive Base Latest Questions

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

For the iPhone, since sqlite3 doesn’t support ALTER for a column, how do I

  • 0

For the iPhone, since sqlite3 doesn’t support ALTER for a column, how do I change the data type of a column on a table that needs to preserve its data?

  • 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. 2026-05-11T09:27:45+00:00Added an answer on May 11, 2026 at 9:27 am

    SQLite uses Manifest (Dynamic) typing. The column types are a guide only and so Altering the column data type is not necessary. Column Affinity is used just to provide compatibility with statically typed databases.

    From the SQLite documentation:

    SQLite uses dynamic typing. It does not enforce data type constraints. Any data can be inserted into any column. You can put arbitrary length strings into integer columns, floating point numbers in boolean columns, or dates in character columns. The datatype you assign to a column in the CREATE TABLE command does not restrict what data can be put into that column…

    SQLite does use the declared type of a column as a hint that you prefer values in that format. So, for example, if a column is of type INTEGER and you try to insert a string into that column, SQLite will attempt to convert the string into an integer. If it can, it inserts the integer instead. If not, it inserts the string

    They go on to say that this is not a bug but a feature. If it is a problem for your application I guess SQlite may not be the best choice for you.

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

Sidebar

Related Questions

I'm developing an iPhone/iPad app that supports dragging items between table views. Since all
I have an iPhone (iOS) app that keeps data in a local SQLite database
I'm using core data on an iPhone application. I have multiple persisntent stores that
Hi stackoverflow coders, I have an app (since the iPhone its really chic to
Since I upgraded my iPhone to 5.1 I have been unable to use it
Since KVC is used to set outlets on the iPhone, there are 2 methods
Since short time ago, Google + has had hangouts implemented on the iPhone. You
Am looking into developing an iPhone native app using Titanium Developer Since this is
I just upgraded to iPhone SDK 3.2 Beta 4. Since doing so, I have
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application

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.