[erlang-questions] List processing
caio ariede
caio.ariede@REDACTED
Wed Mar 31 21:42:26 CEST 2010
string:join(lists:map(fun erlang:integer_to_list/1, tuple_to_list({1, 2,
3})), ", ").
Or just
io:format("~B, ~B, ~B", tuple_to_list({1, 2, 3})).
Caio Ariede
http://caioariede.com/
On Wed, Mar 31, 2010 at 3:43 PM, Saravana <navaneethanit@REDACTED> wrote:
> Hi friends,
>
> Good morning,I have doubts
>
> Here I use the code to select the result for id from mysql db
>
> ConnString = "DSN=mysqldb",
> {ok, Conn} = odbc:connect(ConnString, []),
> {selected, _Cols, Results} = odbc:sql_query(Conn, "SELECT * FROM
> marks where id=1"),
> io:format("~p",Results),
> i get the output in terminal {1,45,55,67,89}
>
> Here I wanna to process each field seperately,How to seperate each
> field in the above tuple?
>
> I wanna print the result 1,45,55,67,89 like wise individually
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list