| | |
Warning Code : 1265
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2007
Posts: 51
Reputation:
Solved Threads: 1
I am receiving MySQL error 1265 when I try to insert records into a table and after googling this error I am no closer to understanding the problem.
Here is the error message that is returned:
Warning Code : 1265
Data truncated for column 'DATE_FIELD' at row 1
Here is the table definition:
When inspecting the table the DATE-FIELD is set to ‘0000-00-00’
Here is the error message that is returned:
Warning Code : 1265
Data truncated for column 'DATE_FIELD' at row 1
Here is the table definition:
MySQL Syntax (Toggle Plain Text)
CREATE TABLE `test`.`TIME_TABLE` ( `RECORD_NUM` INT( 6 ) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT 'Number of Records', `DATE_FIELD` DATE NOT NULL COMMENT 'Date of the event', `DESCRIPTION` VARCHAR( 1000 ) NOT NULL COMMENT 'Detail of the event' ) ENGINE = MYISAM COMMENT = 'This day in history' Here IS a typical INSERT:
MySQL Syntax (Toggle Plain Text)
INSERT INTO TIME_TABLE ( DATE_FIELD, DESCRIPTION ) VALUES ('28, October 1971' , 'Great Britain launched Prospero, the first of four X-3 satellites.');
When inspecting the table the DATE-FIELD is set to ‘0000-00-00’
![]() |
Similar Threads
- 2008 Warning in my code gethostbyname (VB.NET)
- warning: assignment makes pointer from integer without a cast (C)
- Compiler warning for = vs. == ? (C++)
- Help needed with this code please (C++)
- warning C4180 in vc8 using boost::weak_ptr (C++)
- Error warning using show() from java.awt.Window (Java)
- I need Support please (PHP Code) (PHP)
- why incompatible warnings in this code? (C)
- Could anyone help me try this example code (C++)
Other Threads in the MySQL Forum
- Previous Thread: problem with wamp...
- Next Thread: SQL to return two of each value from table?
| Thread Tools | Search this Thread |
agplv3 alfresco amazon api artisticlicense aws bizspark breathalyzer camparingtocolumns changingprices cmg communityjournalism contentmanagement contractors copyright count court crm database design developer development distinct drupal dui ec2 email enterprise eudora facebook form foss gartner gnu government gpl greenit groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier join journalism keyword keywords kickfire laptop legal license licensing linux maintenance mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple music mysql mysqlcolumnupdating mysqldatetimeordermax() mysqlindex mysqlinternalqueries mysqlquery mysqlsearch news open-xchange opendatabasealliance opengovernment opensource oracle penelope php priceupdating query referencedesign reorderingcolumns saas select sharepoint simpledb sourcecode spotify sql sugarcrm syntax techsupport thunderbird transparency virtualization





