MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Rajesh Kanade Date:September 18 2002 5:42am
Subject:How to use Auto Increment
View as plain text  
Hi All

I am new to MY SQL .

I am writing a script where I will have 2 insert statements
The first insert is into a table which has an Auto_Increment field.
I want to know the value which was inserted in this Auto_increment field and
use it in the second INSERT statement.

How can I do it in MySQL.

Rajesh Kanade
8 Janapriya
34/1 Erandwane
Pune 4
How to use Auto IncrementRajesh Kanade18 Sep
  • Re: How to use Auto IncrementDanny Haworth18 Sep
  • Re: How to use Auto IncrementNeil Mansilla18 Sep
Re: How to use Auto IncrementPaul DuBois19 Sep