[英]Correct formatting in Oracle SQL for YYYY/MM/DD hh:mm:ss
The data I need to insert into my Oracle SQL database is in the format of: 我需要插入到Oracle SQL数据库中的数据的格式为:
2014/06/26 00:00:00 2014/06/26 00:00:00 2014/06/26 00:00:00 2014/06/26 00:00:00
When building my table, how should I create the column to insure it can handle this. 构建表时,应如何创建列以确保它可以处理此列。 (I will be inserting via a CSV file).
(我将通过CSV文件插入)。
a date data type will accept that information if your inserts are in the form 如果您的插入内容采用以下格式,则日期数据类型将接受该信息
to_date('2014/06/26 00:00:00','YYYY/MM/DD hh24:mi:ss') to_date('2014/06/26 00:00:00','YYYY / MM / DD hh24:mi:ss')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.