Jump to content

Help with date & time inserting into myqsl table.


Francis

Recommended Posts

Look at that:

 

Error

 

SQL request:

 

CREATE TABLE feedback(

Name varchar( 30 ) ,

COMMENT longtext,

commentDatedate( yy / mm / dd ) ,

commentTimetime( hh : mm : ss )

)

 

MySQL answered:Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(yy/mm/dd), commentTime time(hh:mm:ss) )' at line 1

 

What is my problem?

 

My query:

 

CREATE TABLE feedback 
(
Name varchar(30),
Comment longtext,
commentDate date(yy/mm/dd),
commentTime time(hh:mm:ss)
)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.