Help! I have tons of data already in these date formats (YYYY.M.DD), so I can't modify the data. Is there an easy fix? I'm getting conversion issues when I presently try to import the current dates as a "Date" field.

的帮助!我有大量的数据已经在这些日期格式(YYYY.M.DD),所以我不能修改数据。有简单的解决办法吗?当我当前尝试将当前日期作为“日期”字段导入时,会遇到转换问题。

I'm using Tableau as an overlay and it recognized the dates correctly, no problem. What can I do?

我用Tableau作为叠加,它能正确识别日期,没问题。我能做什么?

1 个解决方案

#1


0

You could use a programmers editor, or sed (if you have Cygwin tools installed) to do a regular expression replace on the date strings, since the pattern is quite distinctive (and all you would need to do is replace the period with dashes to do a bulk import, which is what I'm assuming you're trying to do).

您可以使用一个程序员编辑器,或sed(如果你有安装Cygwin工具)做一个正则表达式替换字符串,日期自模式很独特的(和所有你需要做的就是将时间替换为破折号批量导入,这是我假设你正在试图做的)。

Failing to do that, is there an OleDB driver for Tableau? You could import the flat files into Tableau, and then from there to SQL Server...

如果做不到这一点,表中是否有OleDB驱动程序?您可以将平面文件导入Tableau,然后从那里导入SQL Server…

更多相关文章

  1. TSQL - 非标准化表上的最大值或最高日期
  2. [置顶] sql server中对日期字段值的比较
  3. 一种在t-SQL中选择两个日期之间的日期的方法
  4. mysql 将时间戳直接转换成日期时间
  5. 如何将SQL Server日期格式转换为Oracle?
  6. 怎么样在MYSQL中把一个字符串转换成日期?
  7. 我如何通过日期时间PIVOT TABLE或CrossTab?
  8. 如何编写一个查询,在多组行中聚合具有最新日期的单行?
  9. 在Oracle SQL中将时间戳转换为日期

随机推荐

  1. Android(安卓)自动检测版本并升级
  2. android中资源整理
  3. Android(安卓)架构组件(一)——Lifecycle
  4. Afinal框架(简介)
  5. 属性资源与Android命名空间
  6. Android中生成和扫描二维码
  7. Android(安卓)通知(使用NotificationCompa
  8. Android进程系列第八篇---LowmemoryKille
  9. Android系统利用tcpdump抓包
  10. Android开发者指南(29) ―― USB Host an