SQL Data Type Reference

Compare SQL data types side-by-side across MySQL, PostgreSQL, SQLite, and SQL Server — searchable and filterable by category.

Use the SQL Data Type Reference

Category MySQL PostgreSQL SQLite SQL Server Storage Notes

Showing 0 of 0 types.

Summary

This tool provides a side-by-side comparison of data types across the four most popular SQL databases: MySQL, PostgreSQL, SQLite, and SQL Server. You can search by type name, filter by category (numeric, string, date/time, binary, boolean, JSON, and others), and see storage sizes and notes for each type. It is an essential reference for developers migrating schemas between databases or writing cross-platform SQL.

How it works

  1. Use the search box to filter rows by type name or description.
  2. Click a category badge to show only that group of types.
  3. Each row shows the equivalent type (or N/A) in all four databases.
  4. Storage size and notes columns give extra context for each type.
  5. Click "Reset" or the active filter badge to clear the filter.

Use cases

  • Look up the PostgreSQL equivalent of a MySQL INT or VARCHAR.
  • Find which SQL Server type maps to PostgreSQL JSONB.
  • Check storage sizes when optimizing schema for performance.
  • Quickly compare boolean handling differences across databases.
  • Reference date/time types when migrating from MySQL to PostgreSQL.
  • Understand which types are natively supported vs. emulated in SQLite.
  • Learn the range and precision of numeric types before choosing one.
  • Train junior developers on SQL type fundamentals across platforms.

Frequently Asked Questions

Last updated: 2026-05-23 · Reviewed by Nham Vu