[erlang-questions] odbc and mysql

info <>
Thu Jun 3 19:08:43 CEST 2010


Cols1= ["Id_Zone"]
Rows1= [{101}]

There's obviously a syntax error in the second example, but probably
it's not the one that you're interested in :-) Could you print the
values of Cols1 and Rows1?

2010/6/3, info  < >:
> Hi all,
> Do you see why these lines are correct:
>
> SQL1="select Id_Zone from zones  where ( Id_ref= '10' )",
> {selected,Cols1,Rows1}=odbc:sql_query(Ref,SQL1),
>
> But this one ...
> {selected,["Id_Zone"],[{Idz}]=odbc:sql_query(Ref,SQL1),
> ... returns the following message:
> Exception error: no match of right hand side value
> {selected,["Id_Zone"],[{101}]
>
> Are there restrictions with odbc ? columns syntax ? types of data ?
>

________________________________________________________________
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