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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:45:16+00:00 2026-06-01T14:45:16+00:00

I am trying to make a contacts table in SQLite. When i commit the

  • 0

I am trying to make a contacts table in SQLite. When i commit the changes after inserting 2-3 rows of data, and try to access it after closing the current session, my records are no longer there..

This is what i have done:-

1.Made a directory C:\Sites\databases> to store all my database related data.
2. Created a database called contactlist_development, so when i type the command dir from
C:\Sites\databases>, i can see my database.

This is where the problem starts:-

3.When i do (C:\Sites\databases>sqlite3). I am taken to the sqlite prompt, and when i make a table, its records don’t get saved once i log out:-

sqlite>BEGIN TRANSACTION;
sqlite>CREATE TABLE contacts(Cid integer primary key autoincrement,first_name varchar(15),last_name varchar(15),address varchar(15),city varchar(15),state varchar(15),country varchar(15),phone double, email varchar(20));
sqlite>COMMIT;

Then,

sqlite>BEGIN TRANSACTION;
sqlite>INSERT INTO contacts VALUES(1,'Chetan','Dahal','Bal','Kathmandu','Nepal','50060','cheta@gmail.com'));
sqlite>COMMIT;
sqlite> Ctrl-C

Then when i login again, i don’t get my records:(

  • 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-06-01T14:45:17+00:00Added an answer on June 1, 2026 at 2:45 pm

    Looks like you are opening an in-memory database when you run:

    C:\Sites\databases>sqlite3
    

    Can you try running this instead?

    C:\Sites\databases>sqlite3 contactlist_development
    

    where contactlist_development is your database file.

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

Sidebar

Related Questions

I am trying to make a SQLite table for group of contacts, but I
Trying to make a generic PL/SQL procedure to export data in specific XML format,
Trying to make a custom :confirm message for a rails form that returns data
I am trying to make some changes to .htaccess file of a site. I
Problem when trying to get Contracts Group Uri contacts = ContactsContract.AUTHORITY_URI; //Log.v(23,contacts.toString()); // Make
I'm trying to make an ajax request to the google contacts API with the
I'm trying to make the contacts in my search page symmetrical in their own
I am trying to make a table in HTML. When I resize the window
I'm trying to make someones number a primary number in the specific contact numbers.
I am trying make long screen to vertical direction. So, I need a screen

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.