`
wangminshe89
  • 浏览: 667406 次
文章分类
社区版块
存档分类
最新评论

#1264 - Out of range value adjusted for column 'ID' at row 1

 
阅读更多

MySQL升级到5.0.17后,在执行sql语句
INSERT INTO `news` (`ID`, `Title`, `Content`) VALUES ('', '标题', '正文');
时出现错误:
#1264 - Out of range value adjusted for column 'ID' at row 1

原因:
新版本的MySQL对字段的严格检查。

解决方法:
修改my.ini,将
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
改为
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"。
重新启动MySQL。

2006-04-02备注:
以后写sql语句时,类型和值最好严格一些。

分享到:
评论

相关推荐

    Asjusted-rand-index.zip_Adjusted Rank index_Asjusted rand index_

    This Matlab code calculates the Rand Index and Adjusted rand Index between two clustering groups.... Using the value of the indices one can know about the similarity of the clustering group

    VBA API 32 Serialport MT-SICS

    ' Sets the time-out parameters for all read and write operations on a ' specified communications device. ' Private Declare Function SetCommTimeouts Lib "kernel32" _ (ByVal hFile As Long, ...

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

    For an example of how to decode value from this column using the information above, let us assume we have the following value: 0x000705001F83D775010002014F0BEC4E With byte swapping within each ...

    pre-emphasis 预加重 专利

    Voltage regulator for impedance matching and pre-emphasis, method of regulating voltage for impedance matching and pre-emphasis, voltage mode driver including the voltage regulator, and voltage-mode ...

    kgb档案压缩console版+源码

    y_n-1) (2) where y_i means the i'th character of the string y. The output of the model is a distribution over the next character, y_i, given the context of characters seen so far, y_1 ... y_i-1. To...

    基于噪声数据集处理的K-means聚类算法实现源码(高分毕设).zip

    ## 2、调用四种聚类性能评价指标:分别是Adjusted Rand index、Mutual Information based scores、Homogeneity, completeness and V-measure、Silhouette Coefficient; ## 3、实验结论:除了轮廓系数(Silhouette ...

    Turbo C++ 3.0[DISK]

    be given instructions in a box at the bottom of the screen for each prompt. For example, if you will be installing from drive A:, type: A: INSTALL - This INSTALL handles the installation of ...

    Turbo C++ 3.00[DISK]

    be given instructions in a box at the bottom of the screen for each prompt. For example, if you will be installing from drive A:, type: A: INSTALL - This INSTALL handles the installation of ...

    cvar代码matlab-A-novel-DRO-model-for-self-scheduling-problem:本研究使用带有条件风险值

    value-at-risk (CVaR) for self-scheduling problem under elecyticity price uncertainty. This model comprehensively considers electricity price fluctuations, unit parameters and load re- quirement, and ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    Previous revisions did not range-check the palette index number, and hard crashes could be produced if out-of-range values were supplied to this routine. Previous release 1.33b Release date: ...

    ComponentOne Studio for WinForms 2013 v1

    ComponentOne Studio for WinForms 2013 v1 ComponentOne Studio WinForms 2013 v1 Part of: Ultimate | ...Take a look at Studio for WinForms's release history to find out what's new in previous releases.

    雷达技术知识

    slope, with adjusted R2 values of 0.35, 0.47, and 0.76 for horizontal intervals of 5, 10, and 20m, respectively. Additionally, results show LiDAR provides greater data density where water surfaces are...

    ComponentOne Studio for WinForms 2013 v1 5/5

    ComponentOne Studio for WinForms 2013 v1 5/5 共五个压缩文件,请全部下载后解压 Part of: Ultimate | ...Take a look at Studio for WinForms's release history to find out what's new in previous releases.

    Design of High-speed Burst Mode Clock and Data Recovery IC

    developed for the BMCDR, and the parameters of the circuit blocks can be readily adjusted and optimized based on the behavioural model. The newly designed BMCDR utilizes the 0.18μm standard CMOS ...

    Oracle事例

    1.增加主键 alter table TABLE_NAME add constraint KEY_NAME primary key (TABLE_COLUMN); 指定表空间 alter table TABLE_NAME add constraint KEY_NAME primary key (TABLE_COLUMN) using index tablespace ...

    MT5036升压IC

    in the step-up switch is limited to a value of 6.6A. The MT5036 operates at 800kHz switching frequency and enters pulse-skip-mode (PSM) operation at light load currents to maintain high efficiency ...

    ComponentOne Studio for WinForms 2013 v1 1/5

    ComponentOne Studio for WinForms 2013 v1 1/5 共五个压缩文件,请全部下载后解压 Part of: Ultimate | Enterprise 65+ .NET Windows Forms controls, including the ones you can't get anywhere else. Generate...

    easy develop Carbide-IDE code

    5. Create a new environment variable for Windows called "EMPcPath" and insert the path of EMPc-folder as a value (e.g. C:\Symbian\EMPc\). 6. Compilation is automated with bat-files, that can be found...

    ComponentOne Studio for WinForms 2013 v1 2/5

    ComponentOne Studio for WinForms 2013 v1 2/5 共五个压缩文件,请全部下载后解压 Part of: Ultimate | ...Take a look at Studio for WinForms's release history to find out what's new in previous releases.

    ComponentOne Studio for WinForms 2013 v1 4/5

    ComponentOne Studio for WinForms 2013 v1 4/5 共五个压缩文件,请全部下载后解压 Part of: Ultimate | ...Take a look at Studio for WinForms's release history to find out what's new in previous releases.

Global site tag (gtag.js) - Google Analytics