Skip to content

DUAL

SELECT 'Hello, World!' FROM DUAL;
+---------------+
| Hello, World! |
+---------------+
| Hello, World! |
+---------------+

The DUAL is a special one-row, one-column table present by default in MySQL and other databases. In the example, we selected a string ‘Hello, World!’ from the DUAL table. As DUAL only contains one row and one column, a single value will be returned.