List Processing Problem

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 individually

http://groups.google.co.in/group/erlang-programming/browse_thread/thread/ef9cc459f0fdea2f/97ea5ee7bbee4034?hl=en#97ea5ee7bbee4034

this helps me 😉 thanks

Edited:

Advertisements

About Navaneethan

mixed feelings...
This entry was posted in Prob_system and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s