The below statement:
select 1 from table
will be returning a column of 1's for all rows in the table. You could use it along with a where statement to verify whether you have an entry for a given key, as in:
if exists(select 1 from table where some_column = 'some_value')
What that person might be saying is rather than doing bulk selects with "select * from table", you should specify the columns that you need specifically, for two reasons:
1) Performance & you might get more data than you actually need.
2) The query's user may be relying on the order of columns. If your table gets refreshed, the client will receive columns in a different order than what expected.
Want to be a SQL expert? Come and join this SQL Certification by Intellipaat.
If you want to know more about Select Statement, refer to the below SQL Select Statement tutorial video that will help you out in a better way: