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?

masegaloeh
  • 17,978
  • 9
  • 56
  • 104
xdevel2000
  • 191
  • 1
  • 3

1 Answers1

2

You may get last insert id by

select LAST_INSERT_ID();
kdoya
  • 61
  • 2