您好,
如何实现在opengauss中执行sql后返回sqlcode状态码?下面是用其他数据库来展现sqlcode的方式,或者如何自定义sqlcode来实现,能否给出一个sql例子,谢谢
SQL> set sqlcode on
SQL> select count(1) from aple;
select count(1) from aple;
[-2106]:Error in line: 1
Invalid table or view name [APLE].
used time: 0.313(ms). Execute id is 0.
SQLCODE=1: SQL statement executed fail
thanks jiakai
| |
韩家凯
|
|
h17610105963(a)163.com
|