2

I've started using SQLite for my Android applications. What I would like to know is where I can find a list of queries to use, are they the same for MySQL, and would I be able to use similar queries from MySQL?

3
  • Most queries will be similar, but no one can give you a complete tutorial inside a single answer. Start translating, and if you get stuck on translating a concrete one, that is a better time to ask here. Commented Mar 1, 2012 at 19:52
  • 2
    sqlite.org/lang.html Commented Mar 1, 2012 at 19:52
  • CONCAT* functions do not work in SQlit, they should be replaced with ||. Pipes must be enabled in Mysql using PIPES_AS_CONCAT flag Commented Nov 8, 2017 at 1:22

2 Answers 2

4

SQLite provides a pretty good implementation of the SQL standard. Check out the syntax here. There is a prominent link in the first paragraph that describes omissions.

EDIT: No stored procedures or functions. You can mimic these in your code at runtime, however, using prepared statements

Sign up to request clarification or add additional context in comments.

1 Comment

Do you know if you an create functions like MySQL?
1

List of queries? You would need to use 'SQLiteDatabase.query' set of methods to query your SQLite database in your Android app. There would be SQLite specific SQL that you would need to consider while migrating your MySQL queries.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.