客户端没执行成功的 sql 完整语句: What's the definition of 没执行成功的 sql 完整语句 ? but anyway I provide an idea .
create a table log_sql ( username , execute_date , sql )
in your procedure , when exception , logging all the necessary information into this table .
So in any place ( server) , you will know which sql is failed .
But for doing that , you must set very good exception handling in your codeing .