MikeZ
2010-12-08 11:49:54 UTC
This is the table I'm going to insert a row to:
http://img3.imageshack.us/img3/7759/appeals2.jpg
I have to insert crime_ID = 25344031, filing date = 02 13 2009, hearing date = 02 27 2009
I'm having problem to insert the date, and the table only allow me to enter 7 digit date as the format of 12-Dec-2010.
I use this command but doesn't work. Does the date datatype only accept allow 7 digits?
ALTER TABLE appeals
MODIFY (FILING_DATE DATE(8))
The table structure is follow:
http://img249.imageshack.us/img249/6919/appealsf.jpg
What can I alter so that I can insert the row??
The complete questions is below if you are confused with what I'm saying:
An INSERT statement is needed to support users adding a new appeal. Create an INSERT statement using substitution variables. Note that users will be entering dates in the format of a two-digit month, a two-digit day, and a four-digit year, such as "12 17 2009". In addition, a sequence named APPEALS_ID_SEQ exists to supply values for the Appeal_ID column, and the default setting for the Status column should take effect (that is, the DEFAULT option on the column should be used). Test the statement by adding the following appeal: crime_ID = 25344031, filing date = 02 13 2009, and hearing date = 02 27 2009.
Any helps or advices is appreciated......