12-25-2006 2:08 PM
HI,
WHAT IS THE MAIN & IMPORTANT DIFFERENCE BETWEEN SECELT SINGLE * AND SELECT UPTO ONE ROW
12-25-2006 2:22 PM
Hi,
"SECELT SINGLE * " has only one communication with databse. but "SELECT UPTO ONE ROW" has two communcation with databse.
Ashven
12-25-2006 6:26 PM
Hello Swapna
I use the SELECT SINGLE statement when I need a single entry from a database table where I have all key field values availabe. After executing the statement I have the details of the entry available (i.e. stored in a variable).
I use the SELECT UP TO ONE ROWS statement if I need to check that at least a single entry having certain values exists in the database table. Since I am not interested in details of the entries I do not have any variable filled with details.
Regards
Uwe