[erlang-questions] scan rows from a database

info <>
Thu Jun 17 19:13:36 CEST 2010


As newbie, could you describe what you wrote ...
I thought something like that:

lists:map(fun(R)->the_function end, Rows)

Is it equivalent ?




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


________________________________________________________________
erlang-questions (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:


More information about the erlang-questions mailing list