0

In android apps we are using multiple databases (Sqlite). we need to use join query with two different tables from different databases. Can anybody have idea about this? If it is then can u please send the sample query for join two tables from different database?

Thanks Krishna

2

1 Answer 1

1
attach database 'databaseObj1.db' as dbObj1;
attach database 'databaseObj2.db' as dbObj2;

select
  *
from
  dbObj1.Table1 a
inner join 
  dbObj2.Table2 b on b.Column = a.Column;
Sign up to request clarification or add additional context in comments.

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.