Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Returning a null from select
Returning a null from select [message #11532] Sun, 16 September 2007 22:04 Go to next message
dmcgeoch is currently offline  dmcgeoch
Messages: 52
Registered: November 2006
Location: New Jersey
Member
Hopefully this is an easy question even though I've been pulling my hair out. Smile

I am executing a select statement ( SQL & Select data FROM table ) that may not find a match for the criteria. How do I test for no match. If I try to test the SQL[0] parameter, the program bombs. Is there a way to evaluate for no return value.

Thank you for any assistance,

Dave
Re: Returning a null from select [message #11534 is a reply to message #11532] Sun, 16 September 2007 22:21 Go to previous messageGo to next message
zsolt is currently offline  zsolt
Messages: 697
Registered: December 2005
Location: Budapest, Hungary
Contributor
If your first Fetch() returns with false, you have an empty result set.
Re: Returning a null from select [message #11540 is a reply to message #11534] Mon, 17 September 2007 02:05 Go to previous message
dmcgeoch is currently offline  dmcgeoch
Messages: 52
Registered: November 2006
Location: New Jersey
Member
That was it. Thanks
Previous Topic: PostgreSQL issues
Next Topic: Handling multiple rows data in sqlite3
Goto Forum:
  


Current Time: Mon Apr 29 00:17:13 CEST 2024

Total time taken to generate the page: 0.07911 seconds