- 论坛徽章:
- 0
|
在 《ODBC Programmer's Reference》-> ODBC API Reference -> SQLExecDirect/SQLExecute 章节,关于他们的返回SQLSTATE说明:
23000 Integrity constraint violation
The prepared statement associated with the StatementHandle contained a parameter. The parameter value was NULL for a column defined as NOT NULL in the associated table column, a duplicate value was supplied for a column constrained to contain only unique values, or some other integrity constraint was violated.
我的问题是,怎么进一步区分违反了何种约束? 难道要依靠错误给出的描述字串?
[ 本帖最后由 ivhb 于 2007-7-9 11:11 编辑 ] |
|