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 

MySql

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





PostPosted: Tue Dec 30, 2003 12:37 am    Post subject: MySql Reply with quote



Hi,
I know it 's SQL server but I don't know where I can retrieve informations
for MYSQL.. Maybe someone knows?

Here my problem:
I have a problem with a primary autoinc field in a MySql table... The
value generated by the server never come back to my query until I close it.


Thank you very much



Back to top
Vell
Guest





PostPosted: Tue Dec 30, 2003 6:26 am    Post subject: Re: MySql Reply with quote



I did not get what you want to say.

About MySQL maybe better ask You question at mysql mailing lists
heres one:
[email]win32 (AT) lists (DOT) mysql.com[/email]


"Eric" <edumont (AT) pelluc (DOT) com> wrote

Quote:
Hi,
I know it 's SQL server but I don't know where I can retrieve
informations
for MYSQL.. Maybe someone knows?

Here my problem:
I have a problem with a primary autoinc field in a MySql table... The
value generated by the server never come back to my query until I close
it.


Thank you very much






Back to top
Rick van Dijk
Guest





PostPosted: Tue Dec 30, 2003 10:01 am    Post subject: Re: MySql Reply with quote



Another good MySQL discussion place is the forum at tek-tips.com:
http://www.tek-tips.com/threadminder.cfm?spid=436&newpid=436

--
Rick van Dijk

Datanamic Solutions BV
http://www.datanamic.com : DeZign, easy-to use database design tool



"Eric" <edumont (AT) pelluc (DOT) com> schreef in bericht
news:3ff0c909$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,
I know it 's SQL server but I don't know where I can retrieve
informations
for MYSQL.. Maybe someone knows?

Here my problem:
I have a problem with a primary autoinc field in a MySql table... The
value generated by the server never come back to my query until I close
it.


Thank you very much






Back to top
Tony J Hopkinson
Guest





PostPosted: Tue Dec 30, 2003 9:55 pm    Post subject: Re: MySql Reply with quote

On Mon, 29 Dec 2003 19:37:44 -0500, "Eric" <edumont (AT) pelluc (DOT) com> wrote:

Quote:
Hi,
I know it 's SQL server but I don't know where I can retrieve informations
for MYSQL.. Maybe someone knows?

Here my problem:
I have a problem with a primary autoinc field in a MySql table... The
value generated by the server never come back to my query until I close it.


Thank you very much


www.mysql.com is a good place to start.

As for your autoinc primary key, it won't be created until the the
insert is executed on the server and then requeried.
if you are opening a query, going into edit mode and then posting it,
you won't get the data back until you execute the query again, given
that the record just inserted would be returned by the query in the
first place.
IMHO, you should only use an autoinc key to maintain a PK in a table
when and only when you never ever ever ever want to know what it is.
Ever DBMS implements them differently, they cause the sort of
nightmare you are having on a regular basis. They also mess you up
cursor wise.
I always code round this.
e.g. If say order number is generated automatically. I have a table
with next or last order number used in it. pick it up add 1 and put it
back. then create the order in the orders table. I'll admit that if
the next order number value goes tit's up, you'll have a problem, but
it's tried trusted, and while not foolproof it's definitely vendor
proof.


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.