[erlang-questions] scan rows from a database
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Jun 17 18:31:53 CEST 2010
Greetings,
Is this what you want?
{selected,_Cols,Rows} = odbc(Con,Query),
Results = [scan(Row) || Row <- Rows],
bengt
On Thu, 2010-06-17 at 18:03 +0200, info wrote:
> Hi all,
> I want to select several rows from a database and execute one function for each row.
>
> {selected,Cols,Rows} = odbc(Con,Query),
>
> How to scan in a "loop" all returned rows ? could you suggest me answers ?
>
> John
More information about the erlang-questions
mailing list