# What does SELECT 1 from dual mean?

Re: why does "select 1 from dual" work - what is the "1"? Dual is table that has 1 column and 1 row. 1 is a 'literal' that will be returned by Oracle as it is from the Database. Basically, we use the Dual table to get something/anything from Oracle database once.

Bron: [why does "select 1 from dual" work - what is the "1"? - HPE Community](https://community.hpe.com/t5/operating-system-hp-ux/why-does-quot-select-1-from-dual-quot-work-what-is-the-quot-1/td-p/4893240#:~:text=04%3A47%20PM-,Re%3A%20why%20does%20%22select%201%20from%20dual%22%20work%20%2D,anything%20from%20Oracle%20database%20once.)

Onderwerp: [Techniek & internet](https://1001vragen.nl/onderwerp/techniek-en-internet)
Toegevoegd: 2026-01-26
Webpagina: https://1001vragen.nl/vraag/what-does-select-1-from-dual-mean

## What is SELECT 1 from dual?

It has one column, DUMMY, defined to be VARCHAR2(1), and contains one row with a value X. Selecting from the DUAL table is useful for computing a constant expression with the SELECT statement. Because DUAL has only one row, the constant is returned only once.

Bron: [select 1 from dual; - Oracle Forums](https://forums.oracle.com/ords/apexds/post/select-1-from-dual-2027#:~:text=It%20has%20one%20column%2C%20DUMMY,constant%20is%20returned%20only%20once.)

## What does SELECT 1 from mean in SQL?

"SELECT 1 FROM TABLE" is a simple way to check if there are any rows in the specified MySQL table. It doesn't retrieve any data from the table but rather returns a result set with a single column containing the value 1 for each row that satisfies the conditions in the WHERE clause (if any).

Bron: [Select 1 from Table (SQL Server) - C# Corner](https://www.c-sharpcorner.com/blogs/select-1-from-table-sql-server2#:~:text=%22SELECT%201%20FROM%20TABLE%22%20is,WHERE%20clause%20(if%20any).)

## What will SELECT * from dual return?

In MySQL, using SELECT * FROM DUAL; will result in an error: "No tables used." This is similar to running SELECT *; without specifying a table.

Bron: [DUAL table in SQL - GeeksforGeeks](https://www.geeksforgeeks.org/sql/dual-table-in-sql/#:~:text=In%20MySQL%2C%20using%20SELECT%20*%20FROM,*%3B%20without%20specifying%20a%20table.)

## Verwante vragen

- [What does SELECT * from dual do?](https://1001vragen.nl/vraag/what-does-select-from-dual-do.md)
- [What is Sysdate from dual in SQL Server?](https://1001vragen.nl/vraag/what-is-sysdate-from-dual-in-sql-server.md)
- [What is SELECT from dual in SQL?](https://1001vragen.nl/vraag/what-is-select-from-dual-in-sql.md)
- [What is chr 32 in Oracle?](https://1001vragen.nl/vraag/what-is-chr-32-in-oracle.md)
- [How to remove last 4 characters in Oracle SQL?](https://1001vragen.nl/vraag/how-to-remove-last-4-characters-in-oracle-sql.md)
- [What is Chr 9 in Oracle?](https://1001vragen.nl/vraag/what-is-chr-9-in-oracle.md)
- [How to fix not a GROUP BY expression?](https://1001vragen.nl/vraag/how-to-fix-not-a-group-by-expression.md)
- [How to fix ora 00937 not a single group group function?](https://1001vragen.nl/vraag/how-to-fix-ora-00937-not-a-single-group-group-function.md)
- [What does the using clause in a join do?](https://1001vragen.nl/vraag/what-does-the-using-clause-in-a-join-do.md)
- [How to SELECT top 3 salary in SQL?](https://1001vragen.nl/vraag/how-to-select-top-3-salary-in-sql.md)
