Canonical: https://toolipedia.app/database-cheat-sheets

# 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.

Breadcrumbs: Toolipedia > Developer tools > Code and developer utilities > Database Cheat Sheets

## 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
1. Pick the database sheet from the dropdown.
2. Type a word in the search box to narrow the list to the matching commands.
3. 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
- database cheat sheets
- sql
- mysql
- postgresql
- mongodb
- redis
- sql cheat sheet
- redis commands cheat sheet
- psql commands

## 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.

## Related tools

More free tools that go well with Database Cheat Sheets:
- [Database Backup and Restore Command Builder](https://toolipedia.app/database-backup-and-restore-command-builder)
- [Command-Line Cheat Sheets](https://toolipedia.app/command-line-cheat-sheets)
- [SQL to MongoDB and MongoDB to SQL Query Translator](https://toolipedia.app/sql-to-mongodb-and-mongodb-to-sql-query-translator)
- [SQL Dialect Converter](https://toolipedia.app/sql-dialect-converter)
- [Database Table and Index Size Estimator](https://toolipedia.app/database-table-and-index-size-estimator)
