======= CLI Commands and Equivalents =======
**This is a work in progress**
^ Command ^ Oracle ^ MySQL ^ Postgres ^
| Show databases (schema) |select distinct owner
from dba_objects
where owner =' '| show databases | \l |
| Query Buffer | list | | \p |
| Quit / Exit | exit | exit | \q |
| Display users |select * From dba_users;| | \du |
| Display Schemas | | | \dn |
| Connect to a new DB | . | | connect database |
| Dropping a schema | drop user cascade | drop database | drop schema cascade; ←- Will drop the schema and all objects |
| Show all tables | select * From dba_tables where owner = | show tables | \dt+ .* |
==== Privs ====
^ Command ^ Oracle ^ MySQL ^ Postgres ^
| create user | create user identified by ; | Same as Oracle | Create user password ; |
==== Dumping and Restoring ====
^ Command ^ Oracle ^ MySQL ^ Postgres ^
|dumping | expdp | mysqldump | pg_dump |
|Restore | impdp | mysql > source | psql > \i |