dbTalk Databases Forums  

How to delete a row in mysql++

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


Discuss How to delete a row in mysql++ in the mailing.database.mysql-plusplus forum.



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

Default How to delete a row in mysql++ - 11-15-2006 , 05:34 PM







Hello,

I want to perform a simple query to delete a row based
on a column value in mysql++.

Could somebody please point me to a simple example
of removing a row entry.

I can do this simply in mysql:

mysql>DELETE FROM store WHERE item="Hot Dogs";

Just dont know how to push that into a query.

Much appreciated,
Garyc



__________________________________________________ __________________________________
Sponsored Link

Don't quit your job - take classes online
www.Classesusa.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   
Jim Wallace
 
Posts: n/a

Default RE: How to delete a row in mysql++ - 11-15-2006 , 07:12 PM






Query query =3D m_conn->query();
query << "DELETE FROM players WHERE player_id =3D " <<
player->m_handle;
query.execute();=20

-----Original Message-----
From: gary clark [mailto:burslem2001 (AT) yahoo (DOT) com]=20
Sent: Wednesday, November 15, 2006 6:34 PM
To: plusplus (AT) lists (DOT) mysql.com
Subject: How to delete a row in mysql++


Hello,

I want to perform a simple query to delete a row based on a column value
in mysql++.

Could somebody please point me to a simple example of removing a row
entry.

I can do this simply in mysql:

mysql>DELETE FROM store WHERE item=3D"Hot Dogs";

Just dont know how to push that into a query.

Much appreciated,
Garyc


=20
__________________________________________________ ______________________
____________
Sponsored Link

Don't quit your job - take classes online www.Classesusa.com


--=20
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsu...neva (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
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.