How do you write a Select statement that returns all rows in a SQL statement?

December 24, 2009 - 9:51 pm

SQL Oracle

About as simple as it gets:

SELECT * FROM someTable;

Note that doing SELECT * is generally considered bad programming practice…most of the time, you really don’t need every single column of the table, so you’re just needlessly using system resources to retrieve stuff you don’t want anyway.

2 Responses to “How do you write a Select statement that returns all rows in a SQL statement?”

  1. nerdist_nerd Says:

    Select *

    From tablename;
    References :

  2. TheMadProfessor Says:

    About as simple as it gets:

    SELECT * FROM someTable;

    Note that doing SELECT * is generally considered bad programming practice…most of the time, you really don’t need every single column of the table, so you’re just needlessly using system resources to retrieve stuff you don’t want anyway.
    References :

Leave a Reply