logo       

RE: How to delete a row in mysql++: msg#00030

db.mysql.c++

Subject: RE: How to delete a row in mysql++

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

-----Original Message-----
From: gary clark [mailto:burslem2001@xxxxxxxxx]
Sent: Wednesday, November 15, 2006 6:34 PM
To: plusplus@xxxxxxxxxxxxxxx
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="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?unsub=jwallace@xxxxxxxxxx




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:
http://lists.mysql.com/plusplus?unsub=gcdmc-plusplus@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise