English 中文(简体)
电池组在指定汽车时允许使用初级产品
原标题:SQLite allows a primary when autoincrement is specified

I am using SQLite to test my DAO project. The reason is it provides a quick way to tell me if the model can perform a CRUD operation.

因此,有一个NUNIT项目,每个DAO进行测试,并显示失败。

然而,我遇到一个问题,即一个主要标识为配给的班级,而桌子的自动加固则转成自动加固,因此该插入不会像服务器那样失败。

这里是我用来为记忆制作方言片。

CREATE TABLE dbo.Control ([ControlNumber] INTEGER PRIMARY KEY AUTOINCREMENT  NOT NULL ,[ControlDescription] TEXT    NULL ,[ControlNumeric] REAL    NULL ,[ControlText] TEXT    NULL ,[ControlGroupKey] INTEGER    NULL )

How can I get the insert to fail indicating there is an issue regarding the modelling?

问题回答

SQLite is a lot more forgiving than other databases when it comes to storing data. The only thing I can think of to make this fail is to create an INSERT trigger that somehow makes the query fail.

据我所知,尽管农业部并没有规定,当为汽车加工厂提供价值时,数据库应如何作出反应,这将使测试项目过于限制性(或具体针对服务器)。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签