MySQL DUAL table

Here’s code that should work on any MySQL server regardless of databases and tables:

SELECT 1 FROM DUAL

Apparently they copied it from Oracle.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.