`

.Field 'id' doesn't have a default value错误解决办法

 
阅读更多
存储的时候报Field 'id' doesn't have a default value错误

错误分析如下:

1.首先检查数据库设计的主键是否为Int 类型

2.如果是Int 类型检查数据库中设置是否为自增

各种数据库中的自增的方法不同,具体参考各个数据库的API

分享到:
评论

相关推荐

    MySQL之Field‘***’doesn’t have a default value错误解决办法

    主要介绍了MySQL之Field‘***’doesn’t have a default value错误解决办法,需要的朋友可以参考下

    解决 Field 'ssl_cipher' doesn't have a default value的错误

    最近在向mysql插入用户的时候,突然出现了Field 'ssl_cipher' doesn't have a default value的错误,现已解决,步骤如下

    php.ini-development

    directive because it is not set or is mistyped, a default value will be used. ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one ; of the INI constants (On, Off, True, ...

    Sakemail

    .- Reduced the line sleep to 30 (tell me if this value doesn‘t work for you).27/4/981.7.0- Fixed a memory leak, thanks to Don Higgins.- Moved the string esErrorInFormatOfMsg to a property of SakPOP.-...

    S7A驱动720版本

    - The field "Default Gateway" has been added to the NetLink's configuration property page - The string write from the OPC Server sometimes failed . This bug has been fixed - After driver uninstall...

    微软内部资料-SQL性能优化5

    This uniqueifier is a 4-byte value added as an additional sort key to only the rows that have duplicates of their primary sort key. You can see this extra value if you use DBCC PAGE to look at the ...

    EhLib 9.1.024

    Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and ...

    数位板压力测试

    The device must have a point-ing ap¬para¬tus or method (such as a stylus, or a finger touching a touch pad), called the cursor, that de¬fines the current position. The cursor must be able to ...

    Delphi7.1 Update

    * TClientDataSet doesn‘t save data to file when FileName is set and there is no existing file on disk (Quality Central 2307). * Using the Delphi 7 version of midas.dll to open an XML file that was ...

    EhLib 6.3 Build 6.3.176 Russian version. Full source included.

    Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and ...

    EhLib 8.0 Build 8.0.023 Pro Edition FullSource for D7-XE8

    Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and ...

    Java邮件开发Fundamentals of the JavaMail API

    capability isn't supported by a chosen protocol, the JavaMail API doesn't magically add the capability on top of it. (As you'll soon see, this can be a problem when working with POP.) SMTP The ...

    计算机网络第六版答案

    14. If the two ISPs do not peer with each other, then when they send traffic to each other they have to send the traffic through a provider ISP (intermediary), to which they have to pay for carrying ...

    EhLib5.0.13 最新的ehlib源码

    Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and ...

    ehlib_vcl_src_9_3.26

    Allows to show bitmaps from TImageList depending on field value. Allows to hide and track horizontal or vertical scrollbars. Allows to hide columns. Allows to show 3D frame for frozen, footer and ...

    squashfs2.2-r2.tar.gz

    doesn't exist it will be created, if it does exist and a squashfs filesystem exists on it, mksquashfs will append. The -noappend option will write a new filesystem irrespective of whether an existing ...

    Senfore_DragDrop_v4.1

    4 doesn't), you will have to use the convert.exe utility supplied with Delphi to convert all the demo form files to binary format. A batch file, convert_forms_to delphi_4_format.bat, is supplied in...

    OutlookAttachView v2.73

    o Added command-line options to change any configuration value. * Version 1.95 o Added /extractall command-line option, which allows you to extract all Outlook attachments from command-line, ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    link ▶Don't use an #include when a forward declaration would suffice. When you include a header file you introduce a dependency that will cause your code to be recompiled whenever the header file ...

Global site tag (gtag.js) - Google Analytics