Re: Mysql prepare statement

2009-09-14 Thread Johan De Meersman
You can't make the database, table or field names dynamic with prepare, only values. Prepare allows you to cache the execution plan, which wouldn't be valid on a different table. On Mon, Sep 14, 2009 at 7:09 AM, Manasi Save wrote: > Hi All, > > I have a query about prepare statement of mysql. I w

Mysql prepare statement

2009-09-13 Thread Manasi Save
Hi All, I have a query about prepare statement of mysql. I want to use prepare stmt for insert-update-delete with a dynamic dbname,So can anyone provide any input how i can make prepare stmt and then after that provide a value at runtime. for example :- prepare stmt from Concat('Insert into ',?,'