DataGrip设置时区,Navacate没有结果,DataGrip有结果的问题

遇到一个问题,DataGrip查询是有数据的,但是Navacate查询没有数据,这可能就是因为时区设置不对导致的问题,因为DataGrip设置的时区默认是UTC时间,但是国内使用的话,就要使用国内时间。

查看时间:(这是修改后的,修改前其实是-8小时的)

 

新版本DataGrip以默认时区取世界标准时间。要想时间显示正常,需要将时区变为上海时区,可手动在连接配置里设置参数。如下图:


操作步骤
1.右键打开你想要修改的数据库连接的Properties菜单;
2.点击Advanced按钮;
3.在VM options后面写入-Duser.timezone=Asia/Shanghai,就可以啦;
4.断开数据库连接,重新执行一条SQL(也可刷新数据库)就可以看到效果了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Advanced Data Export VCL is a component suite for Delphi and C++ Builder that allows you to save your data in the most popular data formats for the future viewing, modification, printing or web publication. You can export data into MS Access, MS Excel, MS Word (RTF), Open XML Format, Open Document Format (ODF), HTML, XML, PDF, TXT, DBF, CSV and more! There will be no need to waste your time on tiresome data conversion - Advanced Data Export will do the task quickly and will give the result in the desired format. Key Features Data export into 17 most popular formats: MS Access, MS Excel, MS Word, Open XML Format, Open Document Format (ODF), RTF, HTML, XML, PDF, TXT, DBF, CSV, SYLK, DIF, LaTeX, SQL and Windows Clipboard Support for 64-bit Windows target platform Export of Unicode data. Manually preset text encoding for exported data (UTF-8, UTF-16/UCS-2, UTF-32/UCS-4, Latin1, Latin2, Latin5, Latin7 and more) Saving data for future viewing, modification, printing or web publication Easy-to-use wizard allows your end-users to export data quickly Powerful export options for each data format 100% native Delphi code No additional libraries or software required to operate Detailed help system and demo application Powerful components and properties editors Delphi 5-7, 2005-2007, 2009, 2010, XE-XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo and C++ Builder 5-6, 2006-2007, 2009, 2010, XE-XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo support Setting the user formats for each field separately Multilanguage support

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

1024小神

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值