dbTalk Databases Forums  

need a help in DELETE syntax

comp.databases.mysql comp.databases.mysql


Discuss need a help in DELETE syntax in the comp.databases.mysql forum.



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

Default need a help in DELETE syntax - 01-04-2007 , 08:57 AM






i want to deleta a row say
DELETE FROM myrow WHERE id=234 ;

but i want to know the details of the deleted row without using any
second statement !! is it possible to write a statement which will
return the details of deleted row !!!


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

Default Re: need a help in DELETE syntax - 01-04-2007 , 09:48 AM






Don't think so.

If "select * from myrow where id = 234; delete from myrow where id = 234"
doesn't work, then I don't think that there's an elegant alternative.

And what's so bad about a second statement.

SA

"piyush" <piyush.plaban (AT) gmail (DOT) com> wrote

Quote:
i want to deleta a row say
DELETE FROM myrow WHERE id=234 ;

but i want to know the details of the deleted row without using any
second statement !! is it possible to write a statement which will
return the details of deleted row !!!





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

Default Re: need a help in DELETE syntax - 01-04-2007 , 10:08 AM



my php server is using remote mysql server so its advantageous to use
minimum number of queries / statements

thanks for reply


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.