Question: I'm working on an Enterprise application upgrade and have hit some problems. As part of the debugging process I'm inspecting the sql queries executing. The program is currently running SELECT 1 FROM TABLE. (replace TABLE with actual table name). What is the purpose of SELECT 1 FROM TABLE ? Answer: The SELECT 1 FROM TABLE technique is often used in certain products. The first question is what does this sql statement actually do? When you execute SELECT 1 FROM TABLE , there will be a Scan , because the purpose of SELECT 1 FROM TABLE is to return a...
Read more →