Teradata: How can I raise an error in a stored procedures

白昼怎懂夜的黑 提交于 2019-12-02 05:18:49

问题


Is there a way to raise errors inside of Teradata stored procedures?

For example, I want to check if a table is empty. If the table is empty I wish to cause the stored procedure to error out with the error message "Table Empty".

That will allow me to bubble up the error to the calling application.


回答1:


TD13+ implements Standard SQL's SIGNAL/RESIGNAL.



来源:https://stackoverflow.com/questions/23399461/teradata-how-can-i-raise-an-error-in-a-stored-procedures

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!