Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between SQLite and SQL

I know SQLite Data Base is used in mobile devices (Android, iPhone) and it is light, takes only Kb space. Is there any limitation in SQLite? I want to know how they are different.

like image 536
Deep Verma Avatar asked Oct 01 '12 02:10

Deep Verma


People also ask

What is the difference between SQL & SQLite?

SQL is Structured Query Language used to query Relational Database System. It is written in C language. SQLite is an Relational Database Management System which is written in ANSI-C.

Is SQLite same as SQL Server?

Microsoft SQL Server is a powerful, full featured SQL system that supports entire ecosystems. While SQLite is a light-weight database meant to be embedded into end programs. SQLite is often useful even to SQL Server professionals when they need to create smaller databases without a full server setup to support.

What type of SQL does SQLite use?

SQLite uses PostgreSQL as a reference platform. "What would PostgreSQL do" is used to make sense of the SQL standard.

Does SQLite use standard SQL?

SQL As Understood By SQLite. SQLite understands most of the standard SQL language.


1 Answers

Every SQL database uses its own implementation of the language that varies slightly. While basic queries are almost universal, there are notable nuances between MySQL, PostgreSQL, Microsoft SQL Server, Oracle Database, etc.

What's particularly notable about SQLite is that unlike all the others mentioned above, this database software doesn't come with a daemon that queries are passed through. This means that if multiple processes are using the database at once, they will be directly altering the data through the SQLite library and making the read / write data calls to the OS themselves. It also means that the locking mechanisms don't deal with contention very well.

This isn't a problem for most applications that where one would think of using SQLite -- the small overhead benefits and easy data retrieval are worth it. However, if you'll be accessing your database with more than one process or don't consider mapping all your requests through one thread, it could be slightly troublesome.

like image 167
Jeff Ferland Avatar answered Sep 21 '22 13:09

Jeff Ferland