Popular just now


Erlang MySQL connection

Starting to collect all I can on using Erlang, Yaws and MySQL Here is a database connection and query for MySQL

application:start(odbc). ConnString = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=test; User=root;Password=ace152;Option=3;". {ok, Conn} = odbc:connect(ConnString, []). Results = odbc:sql_query(Conn, "SELECT * FROM test_table").

Now I need to find out how to iterate through records.

No comments:

Post a Comment