freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Return the InsertID after an Insert?
- From: craigs <s.craig AT andronics.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Return the InsertID after an Insert?
- Date: Thu, 03 Mar 2005 10:01:33 +0000
I should have explained it better! what i mean is the row number the Insert was inserted into, in MySQL its a function called mysql_insert_id, eg..
row no. data
3 Aston Villa
4 Man Utd.
if i inserted Arsenal next the row would be 5, thats what i want to return. Is this possible in freetds or will i just have to do another query?
Thanks,
Shaun.
Thompson, Bill D (London) wrote:
Shaun
AFAIK, there's no such concept as an "insert ID" in sql server.
What does it represent in MySQL ? You can get a "number of rows affected" value...
Bill
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of craigs
Sent: 03 March 2005 09:55
To: FreeTDS Development Group
Subject: [freetds] Return the InsertID after an Insert?
Is it possible in db-lib to return the insertid of a record when its inserted, eg. insertid = dbsqlexec("Insert into .....etc") I know this can be done in mysql but dont know about ms sql, any info would be
great.
Shaun.
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds --------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ --------------------------------------------------------
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] Return the InsertID after an Insert?,
craigs, 03/03/2005
- <Possible follow-up(s)>
-
RE: [freetds] Return the InsertID after an Insert?,
Thompson, Bill D (London), 03/03/2005
- Re: [freetds] Return the InsertID after an Insert?, craigs, 03/03/2005
-
RE: [freetds] Return the InsertID after an Insert?,
Owen, Robert, 03/03/2005
- Re: [freetds] Return the InsertID after an Insert?, craigs, 03/03/2005
-
RE: [freetds] Return the InsertID after an Insert?,
Thompson, Bill D (London), 03/03/2005
-
Re: [freetds] Return the InsertID after an Insert?,
craigs, 03/03/2005
- Re: [freetds] Return the InsertID after an Insert?, craigs, 03/03/2005
-
Re: [freetds] Return the InsertID after an Insert?,
craigs, 03/03/2005
-
RE: [freetds] Return the InsertID after an Insert?,
Thompson, Bill D (London), 03/03/2005
-
Re: [freetds] Return the InsertID after an Insert?,
craigs, 03/03/2005
- Re: [freetds] Return the InsertID after an Insert?, James K. Lowden, 03/03/2005
-
Re: [freetds] Return the InsertID after an Insert?,
craigs, 03/03/2005
Archive powered by MHonArc 2.6.24.