Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference database name in sqlite studio

In Sqlite studio, I usually select the database name from the dropdown before executing a query. However if I want to specify the database name in the SQL itself, something like

  Select * from C:\Folder\DbList\Test.Db \<tableName>.
like image 379
Aqua267 Avatar asked Feb 02 '26 13:02

Aqua267


1 Answers

Having several databases open at sametime in SQLite Studio. You can access to all of them from the same SQL query window independentely of the value for db in the dropdown menu that you said.

example of selects from 2 databases

SELECT  title, body
   FROM myDB_1.Notas
   WHERE ROWID< 20
UNION
SELECT  title, content
    FROM my_DB2.texto

Note that score symbol "-" in db name produces errors, so replace it by underscore

like image 54
Daniel Perez Avatar answered Feb 04 '26 03:02

Daniel Perez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!