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 

Append Blank with FB ?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Uncle Potato
Guest





PostPosted: Mon Apr 25, 2005 5:19 pm    Post subject: Append Blank with FB ? Reply with quote



I have a simple form having some DBEdit & a TQuery
To get a live record for edit, I do a

select * from MyTable where ID=:ID

For adding a new record, I usually put a string, which don't likely to
exists, into :ID, and open the query. Though it select an empty set,
this add new method works as expected.
This leaves my Form no different for EDIT and NEW.

But I think selecting something don't exist is a waste of time.
What is the better approach to do ?
Back to top
Bill Todd
Guest





PostPosted: Mon Apr 25, 2005 11:58 pm    Post subject: Re: Append Blank with FB ? Reply with quote



There is nothing wrong with that approach as long as the column in the
WHERE clause is indexed.

There is something wrong with using TQuery since that means you are
using the BDE. The BDE driver for InterBase only partially supports
dialect 3 databases and is deprecated. If you are going to work with
Firebird use FIBPlus or IBO.

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.