Implement C ++ operations for SQLite databases step by step

Source: Internet
Author: User
SQLite is a lightweight database and ACID-compliant relational database. It is currently used in many embedded products and occupies very low resources.

SQLite is a lightweight database and ACID-compliant relational database. It is currently used in many embedded products and occupies very low resources.

SQLite relational database is already used in many embedded products. It occupies very low resources. In embedded devices, only a few hundred operating systems are required, the same Code can be compiled across platforms. This database and Microsoft Access.

Due to work needs, these days for sqlite

1: Download and compile the source code

My version is

It is very easy to compile the source code.

My goal is

LIB

FindVSInstallation path of, my isD: \ Program Files \. Use the command line to enter the following path.

D: \ Program Files \ Microsoft Visual Studio 9.0 \ VC \ bin> lib/def: sqlite3.def/machine: ix86

Problem 1: mspdb80.dllCannot be found

The reason is that there is no"Msobj80.dll, mspdb80.dll, mspdbcore.dll, and mspdbsrv.exe.

Solution:

Corresponding generation

Microsoft (R) Library Manager Version 9.00.21022.08

Copyright (C) Microsoft Corporation. All rights reserved.

Creating Database...

2

Problem 2: sqlite3.dll not found, So this application failed to start

I put

Originally required for Program Execution

3: Demo code

The main source code is from the internet. I modified the source code.

4

I operate on the command lineSQLiteWhen you enter the database, you cannot generate a database, and the Table Generation Command is not successful.

Then I finally understood,

SQLite

Finally, a simple SQLite program is completed.

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.