Database Cheat Sheets
Searchable cheat sheets with copy buttons for standard SQL, MySQL, PostgreSQL, MongoDB and Redis: queries, commands, shell tricks, indexes, backups and administration.
- Free
- No sign-up
- Works on any device
About Database Cheat Sheets
Quick reference sheets for the commands you look up most often, with a copy button on every line. Choose standard SQL, MySQL, PostgreSQL, MongoDB or Redis and type a word such as join, index, expire or backup to filter. The sheets cover querying, joins, aggregates, inserts and updates, schema changes, users and privileges, performance tools such as EXPLAIN and VACUUM, shell commands such as psql and mongosh, and dump and restore. Placeholder names such as users and mydb are meant to be replaced.
How to use Database Cheat Sheets
- Pick the database sheet from the dropdown.
- Type a word in the search box to narrow the list to the matching commands.
- Press Copy on a line, replace the placeholder names with your own and run it.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Do the commands work on every version?
They are written for current releases. A few need a recent version, for example ZRANGE with REV needs Redis 6.2, and MySQL 8 settings differ from MySQL 5.7. Check your manual when a command fails.
Are destructive commands marked?
The description says what a command does, for example that DELETE without WHERE removes every row. Run anything that changes data on a test copy first.
Can I search across all sheets at once?
The search works inside the sheet you chose. Switch the dropdown to look in another database; the search word stays in the box.
Is Database Cheat Sheets free?
Yes. Database Cheat Sheets on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.