dbTalk Databases Forums  

minimum calculation

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss minimum calculation in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default minimum calculation - 05-23-2006 , 05:15 AM






Hi,

i've got a (simple) question:


How can I get the result of following query?

query << "SELECT MIN(EURO) from stock"
res= query.store()
row= *res.begin()

row["EURO"] or row[0] doesn' work...

Thanks.

Best regards,
Tomas






__________________________________________________ _________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: minimum calculation - 05-24-2006 , 06:40 AM






Tomas Fischer wrote:
Quote:
How can I get the result of following query?
I don't know, but I'll tell you how I'd find out: I'd figure out how
you'd do it with the C API, then look through MySQL++ for similar calls
to see how you can get access to similar functionality. If there is no
way to get access to the underlying C API in a way needed to retrieve
the result, then I'd look at writing a patch to add it.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.