Micke
Micke

Reputation: 2406

Update one table with newly inserted id from another

So, the situation is this:

I want to:

How would you do this in MySQL? Can it be done using straight SQL? Using stored procedures?

Upvotes: 0

Views: 225

Answers (1)

AAA
AAA

Reputation: 4956

The query SELECT LAST_INSERT_ID() should help you achieve this.

Upvotes: 2

Related Questions