[Zope] A single value from SQL

Daniel M. Drucker dmd@3e.org
Sat, 5 Jun 1999 13:06:43 -0400 (EDT)


> <!--#var sqlSelectOldestAge--> is a list. If you know the list has excatly
> 1 element (SELECT MAX must return exactly 1 row) there should be a way to
> extract first element off the list without #in loop. Something like
> <!--#var "sqlSelectOldestAge()[0]" -->


Right. Essentially I want to treat the SQL method like a function call
which returns a value and not a list.

dmd