Select across different databases

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
sandy771
Posts: 194
Joined: Tue 22 May 2007 13:57

Select across different databases

Post by sandy771 » Wed 09 Jul 2014 12:32

Is it possible to do a select query based on columns in two different databases, i.e. two physically different files. I am using unidac but the underlying databases will be sqlite

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Select across different databases

Post by AlexP » Wed 09 Jul 2014 14:47

Hello,

Yes, you can work with several databases simultaneously in one connection. For this, there is a command in SQLite - ATTACH DATABASE: http://www.sqlite.org/lang_attach.html .

Post Reply