title: What is the alternative of @@Error (in MS SQL) in MySql 5.5
body: <p>I am writing a stored proc in MySql which only has an insert command. I want to output <code>'Success'</code> or <code>'Failed'</code> based on the command was executed successfully or not. </p>
  
  <p>In SQL Server I used system variable <code>@@Error</code> for this purpose. But can't find something similar in MySql which will let me know whether any command was executed successfully or not.</p>