1) how to create an auto-increment field?
A simple answer: a field declared as integer primary key will be automatically added.
Here is a detailed answer: Starting from SQLite 2.3.4, if you declare a field in a table as integer primaryKey, so no
Until you learn! Find information before you learn
SQLite's SQLATTACH DATABASE
BEGIN TRANSACTION
Comment
COMMIT TRANSACTION
COPY
CREATE INDEX
CREATE TABLE
CREATE TRIGGER
CREATE VIEW
DELETE
DETACH DATABASE
DROP INDEX
DROP TABLE
DROP TRIGGER
DROP
Rotate from: http://www.steveluo.name/sqlite-windows-server-2008-r2-deploy-faq/Today it took a day to study SQLite to replace the Access databases used in some lightweight projects. The reason for this is to try out this popular lightweight file
FAQ Chinese Version
How do I create an auto-increment field?
What data types does SQLite support?
Why can I insert a string into an integer field of the SQLite database?
Why does SQLite think the expression '0' = '00' is true?
Why
Editor's note: Have you ever encountered any of these questions about the difference between SQLite and SQL? I have summarized some of the differences that often occur between SQLite and SQL. I hope this will be helpful to you. I. Summary of common
1. How to create an auto-increment field?
2. What data types does SQLite support?
3. Why can I insert a string into the integer field of the SQLite database?
4. Why does SQLite think the expression '0' = '00' is true?
5. Why does SQLite not allow '0'
1. How do I create a self-added field?
2. What types of data are supported by SQLite?
3. Why can I insert a string into an integer field in the SQLite database?
4. Why SQLite think the expression ' 0 ' = ' 00 ' is true?
5. Why is SQLite not allowed
SQLite Foreign keys FAQ: Can you show me how to defineForeign keysIn a SQLite database table design?
The SQLite database does supportForeign keys, And its foreign key syntax is similar to other databases. Here's a quick SQLite foreign key example.A
Sqlce is too slow to compare the execution speed with SQLite.
Therefore, in the next version of the project, replace sqlce with SQLite.
After all, SQLite is not used.
The results are indeed good. Two points are satisfactory.
First, the execution
Recently, a website using SQLite database as a temporary data cache, the multi-slice partition SQLite database files, about 10,000 new daily data volume, the initial efficiency has been significantly improved, but after one months the database files
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.