Thank you dave for those answers. I don’t have a lot of time at the moment to move forward on this as I would like, but I will take your comments into account as I move forward. I’ll keep you informed. Thank you again
Arthur! Le mercredi 17 avril 2019 00:17:25 UTC+2, Dave S a écrit : > > > > On Tuesday, April 16, 2019 at 5:54:54 AM UTC-7, learth...@gmail.com wrote: >> >> Hello, >> >> I'm sorry if I did not post my tests but I’m really beginner with web2py, >> python... and I was a little afraid to look ridiculous.. (Sorry again but >> my English is ridiculous too !!). >> >> First I tried with Mysql trough MysqlWorkbench and I quickly success to >> get the minimum but only for a specific id with a simple SELECT and >> MIN(price). >> >> When I tried to do the same thing for all existing spare parts, I stopped >> with that because I blocked and got nothing good. >> >> >> > > I'm not sure what the cursor stuff is about, but what I think you want on > the SQL side is a WHERE clause SELECT, something like > > SELECT * FROM supplierchoice WHERE price == (SELECT min(price) FROM > supplierchoice); > > I haven't translated this into DAL yet, because where I use this is > checking on my scheduled tasks, and I do it from a terminal window on the > server. > > (My exposure to cursors was in Android app development, where the cursor > was a Java object, at least by the time I saw it. I'm out-of-date on that > environment these days.) > > /dps > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.