MySQL uses the USE database_name
to change the active database. Does that work on all databases?
EDIT: By databases I mean DBMS. Thanks for bringing it to my attention.
MySQL uses the USE database_name
to change the active database. Does that work on all databases?
EDIT: By databases I mean DBMS. Thanks for bringing it to my attention.
No. Postgres uses \c as far as i know. Also, in oracle you will need to use "alter session" command.
No. Many T-SQL databases has the command, but not all. Simple as that.
on all that are using SQL as a query-language. So that includes, oracle, postgresql, ms sql-server, db2 even ms access. So I think you've got most cases covered.
edit: exclude postgresql - there you have to use \c
SQLite does not recognize "USE dbname", but instead uses "ATTACH":
attach 'my.db' as mydb;