Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 26 Jul 2006 @ 21:58:57 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Macro call from JDBC for Tactical Queries
 
From:   McCall, Glenn David

  To skip empty result-set one quick way is to find-out number of columns in the current result-set. ODBC has a function SQLNumResultCols() which can return number of result-set columns, if it returns 0 then you can skip to next result-set.  


For interest, in JDBC the Statement.getMoreResults () does 2 things.

1) Move to the next resultSet and

2) returns true or false to indicate whether this (new) result set is a ResultSet (i.e. data) or an activity count (eg. # rows deleted).


Glenn Mc



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023