Android Development Notes: SQLite import and export data

Source: Internet
Author: User
Tags sqlite db

SQLite is the most convenient database in Android. Now let's take a look at how to quickly import and export data in SQLite.

First, because. NET project to Android, the original database uses SQLSERVER, because the same part of the project structure still needs to use the original data table structure, in order to reduce repetitive work, directly convert the SQLSERVER table into SQLite, the current conversion tool is"Convert SQL Server DB to SQLite DB"

Official download updates are available in codeproject:

The usage is very simple: installation is not required, and then run “converter.exe directly after decompression"

In "SQL SERVER Address", enter the SQLSERVER instance Address. Here, use the default Address ".", that is, the local database instance. Click "Set" on the right.

The list of available databases under the instance is displayed on the right side of "Select DB". Select the database to be converted.

"SQLite DataBase File Path": select and create the converted sqlite DataBase File storage Path and name

Click Start The Conversion Process to Start The Conversion Process.

Select the table to be converted and convert it with "OK"

After the conversion is complete, use "sqlitestudio" (you can also use other sqlite visualization tools. I am used to using this tool, which is small in multiple languages and does not need to be installed): Official download

Open sqlitestudio "Database"-"add Database"

 

Select the exported database file and open it directly.

In sqlitestudio, you can create and modify tables or execute SQL statements to meet common requirements.

Right-click sqlitestudio to export table data and choose export table & gt; default format CSV file

Import table data:

Right-click the table name "import data to table"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.