Supporting TABLESAMPLE clause

The following list shows which engines support the TABLESAMPLE clause and which don't:

  • MariaDB: Not supported
  • MySQL: Not supported
  • PostgreSQL: Supported since PostgreSQL 9.5
  • SQLite: Not supported
  • Db2 LUW: Supported since version 8.2
  • Oracle: Supported since version 8
  • Microsoft SQL Server: Supported since 2005

Get Mastering PostgreSQL 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.