Jump to content

Insert issue


naveendk.55

Recommended Posts

Hi

 

I have a table as mentioned below. I am writing the below insert command and it is showing syntax error. Newbie. Please help if there is any mistake.

 


insert into task (Desc, Total_Time, End_Date) values ('volks', '11:45:50', '2012-03-10');

 

 


mysql> desc task;

+------------+--------------+------+-----+---------+----------------+
| Field      | Type         | Null | Key | Default | Extra          |
+------------+--------------+------+-----+---------+----------------+
| id         | int(11)      | NO   | PRI | NULL    | auto_increment |
| Desc       | varchar(225) | NO   |     | NULL    |                |
| Total_Time | time         | NO   |     | NULL    |                |
| End_Date   | date         | NO   |     | NULL    |                |
+------------+--------------+------+-----+---------+----------------+
4 rows in set (0.03 sec)

Link to comment
https://forums.phpfreaks.com/topic/262311-insert-issue/
Share on other sites

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.