List:General Discussion« Previous MessageNext Message »
From:Szallár Zsolt Date:October 26 2000 11:28am
Subject:variable in the insert into
View as plain text  
Hi,

I tried to know it for a long time...

I read a SQL reference book, but the following sintax is wrong.

char string='anything';
strcpy(query,"insert into table1 values(:string,'any1','any2')");
mysql_query(&handle,query);

So I want to insert the 'anything', the 'any1', and 'any2' to the
table1.
Which the right sintax in mysql?

tnx

Szor


Thread
variable in the insert intoSzallár Zsolt26 Oct
  • Re: variable in the insert intoTonu Samuel26 Oct
    • Re: variable in the insert intoSzallár Zsolt27 Oct
      • Re: variable in the insert intoTonu Samuel27 Oct
      • Re: variable in the insert intoThimble Smith27 Oct