dbTalk Databases Forums  

drop table don't work

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss drop table don't work in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default drop table don't work - 06-24-2006 , 06:05 PM






query.exec("drop table schedule");

it seem to be not work.

and I want to know if a DB is existing, how to do

--
gtalk:freeespeech (AT) gmail (DOT) com

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
AT
 
Posts: n/a

Default Re: drop table don't work - 06-26-2006 , 09:25 AM






owen nirvana wrote:
Quote:
query.exec("drop table schedule");

it seem to be not work.
Does it work when you say "drop table schedule" from within the mysql
command line program, or another program like MySQL Query Browser where
you can run direct SQL?

Quote:
and I want to know if a DB is existing, how to do
Please ask that on the main MySQL mailing list. MySQL++ proper has no
way to do this, but perhaps there is a way with a SQL query, or with a C
API call. If so, the proper place to ask what that query is on the
other list.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: drop table don't work - 07-01-2006 , 08:47 PM



yes,
it only doesn't work in c++ programme, and I think I have query.exec("use game")

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #4  
Old   
AT
 
Posts: n/a

Default Re: drop table don't work - 07-05-2006 , 09:21 AM



owen nirvana wrote:
Quote:
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.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.