Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Questions And Answers for PowerBuilder CPD Exam

HomePrevious Lesson: Question: #81 of #233
Next Lesson: Question: #83 of #233
Question: #82 of #233 Section: Embedded & Dynamic SQL Version: 5.0 or later

Question

The UPDATE statement in an embedded SQL script did not update a single row. What would be value of SQLCODE?

 [A] -1
 [B] NULL
 [C] -100
 [D] 0
 [E] Results in error.

Click here to see the answer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Answer

The correct answer is: D

Click here to go to top of the page.

Click here to see the explanation.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Explanation

If UPDATE statement WHERE clause doesn't find any rows that matches the WHERE clause, then it updates zero rows. Updating zero rows is not an error, that's why SQLCODE in this case contains zero, meaning successful. You need to check SQLNRows to find the number of rows effected.

Click here to go to top of the page.

HomePrevious Lesson: Question: #81 of #233
Next Lesson: Question: #83 of #233

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com