From: Sasha Pachev Date: April 26 1999 5:24am Subject: Re: a problem when insert use C List-Archive: http://lists.mysql.com/mysql/2369 Message-Id: <3723F890.10D29470@direct1.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit clock wrote: > > hi all: > I am new users for Mysql CAPI. > A problem when I use "mysql_query" > such as : > > static char kk[]="insert"; > mysql_query(&mysql,"insert into pet (name) values (kk)"); > > but it not insert into db,how to write it ? > > thanks > If I understand your problem correctly, man sprintf. If that does not help, I must have missed something, then explain the problem in more detail. -- Sasha Pachev http://www.sashanet.com