SQLiteDatabase.ConflictRollback 字段

定义

注意

This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.

发生约束冲突时,将立即发生 ROLLBACK,从而结束当前事务,并且命令会中止,返回代码为 SQLITE_CONSTRAINT。

[Android.Runtime.Register("CONFLICT_ROLLBACK")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)]
public const Android.Database.Sqlite.Conflict ConflictRollback = 1;
[<Android.Runtime.Register("CONFLICT_ROLLBACK")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Database.Sqlite.Conflict enum directly instead of this field.", true)>]
val mutable ConflictRollback : Android.Database.Sqlite.Conflict

字段值

Value = 1
属性

注解

发生约束冲突时,将立即发生 ROLLBACK,从而结束当前事务,并且命令会中止,返回代码为 SQLITE_CONSTRAINT。 如果没有事务处于活动状态(除了在每个命令上创建的隐含事务),则此算法的工作方式与 ABORT 相同。

Java文档android.database.sqlite.SQLiteDatabase.CONFLICT_ROLLBACK

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于