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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:39:08+00:00 2026-06-03T08:39:08+00:00

I am relatively new to using SQLite on Android. I have some experience with

  • 0

I am relatively new to using SQLite on Android. I have some experience with SQLite in the windows command prompt. Is there anyway to use the .output, .dump, .mode, .read, and other native commands of sqlite directly in you Javacode for android? I know there is a db.exec(raw SQL command) in android, but you can only execute non return tasks like inserting a row.

I ideally would like to be able to export a query of my SQLite database to a text file or .csv file directly on the phone without having to manually query the database and do the string formatting then output write the file. I know this is possible within the command prompt on a sqlite db on a computer.

>.ouput file.csv
>.separator ,
>select * from test;

then you have file in the directory of your db that is called file.csv with the results of the select query. Can I do the same thing directly with sqlite in an Android activity? (I do not mind having to then move the file.csv to the sd card for the user to get it etc and am comfortable doing that part.)

  • 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-03T08:39:10+00:00Added an answer on June 3, 2026 at 8:39 am

    Is there anyway to use the .output, .dump, .mode, .read, and other native commands of sqlite directly in you Javacode for android?

    No, because there is no guarantee that there is a SQLite command-line client on your device. The things you list are not “native commands of sqlite”, but are native commands of a sqlite3 command-line binary.

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

Sidebar

Related Questions

I am relatively new at using ASP.NET MVC, however I have got experience with
I'm relatively new to using Windows Workflow but we have a requirement whereby all
I am relatively new to using jQuery and I have a problem with creating
I'm relatively new to objective-c...I'm using the iphone 3.0 SDK I have a UIView,
I'm relatively new to .NET and have being using Linq2Sql for a almost a
I'm relatively new to PHP and have been writing a project using what I
I have some relatively complex sqlite queries running in my iPhone app, and some
Relatively new to using database and for some reason I can't get this 'execute'
I'm relatively new to using WPF and the MVVM architecture. I have a question
I relatively new to using Eclipse with the Android SDK. Whenever I encounter an

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.