您还可以让库给出预先格式化了的错误字符串。
You can also have the library give you a preformatted error string.
该变量包含最后一个失败的sql语句的错误字符串。
This variable contains the error string from the last failed SQL statement.
最后一个游标的SQLERROR被返回,而最后一个失败的sql语句的错误字符串将被存储到变量SQLERRSTR中。
SQLERROR of the last cursor is returned, and the error string of the latest failed SQL statement is stored into variable SQLERRSTR.
And what do I do if I get a key error?
如果我得到了关键字错误该怎么办呢?
If not I'll get a key error.
如果不在,我会得到一个关键字错误。
应用推荐