BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delete current Record with IBQuery

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Hs
Guest





PostPosted: Fri Mar 16, 2007 4:52 am    Post subject: Delete current Record with IBQuery Reply with quote



How can I delete the current selected record with IBQuery
when it does not have any unique field and all of it's
fields can be equal with another record.
So I can't write DELETE FROM X WHERE ID=11.
With IBTable I can call IBTable.Delete.

Thanks.
Back to top
Bill Todd
Guest





PostPosted: Fri Mar 16, 2007 6:43 am    Post subject: Re: Delete current Record with IBQuery Reply with quote



Hs wrote:

Quote:

How can I delete the current selected record with IBQuery
when it does not have any unique field and all of it's
fields can be equal with another record.
So I can't write DELETE FROM X WHERE ID=11.
With IBTable I can call IBTable.Delete.

Thanks.

In what context are you deleting the current record? If you are
deleting the current record in a stored procedure you may be able to
use RDB$DB_KEY to identify the record.

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.