From: Warren Young Date: July 5 2006 2:19pm Subject: Re: drop table don't work List-Archive: http://lists.mysql.com/plusplus/5808 Message-Id: <44ABCA5E.2070503@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit owen nirvana wrote: > it only doesn't work in c++ programme, and I think I have > query.exec("use game") Try query.execute() instead. That's how examples/resetdb does it.