DBA > Job Interview Questions > COBOL SQL Interview Questions

Why SELECT * is not preferred in embedded SQL pr

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

Why SELECT * is not preferred in embedded SQL programs ?

For three reason:
If the table structure is changed ( a field is added ), the program will have to be modified . Program might retrieve the column which it might not use, leading on I/O over head.
The chance of an index only scan is lost.

(Continued on next question...)

Other Job Interview Questions