2

I must convert some stored procedures from MS Sql Server to MySQL

and in Sql Server I have these two variables:

  • @@ERROR for a server error and
  • @@IDENTITY for the last insert id

are there MySql similar global variables?

1 Answer 1

2

You may get last insert id by

select LAST_INSERT_ID(); 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.