Insert date and time into MySQL with ColdFusion

后端 未结 3 549
南方客
南方客 2020-12-21 06:55

I am totally lost here.

There is a field of type \"datetime\" in MySQL database. I want to populate it with a datetime generated by ColdFusion program. I found that

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-21 07:18

    These look like "back ticks", which would cause a problem. Of course, I have not used MySQL, so I can't say for sure.

    (`date`)
    

    You should be able to do this:

    INSERT INTO some_table(date)
    VALUES ('{ts '2012-07-04 20:11:00'}')
    

提交回复
热议问题