Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Teradata 15数据库进行查询。这两个查询之间有什么实际区别吗?
SELECT TO_CHAR(CURRENT_TIMESTAMP, 'YYYY-MM-DD') SELECT CURRENT_TIMESTAMP(FORMAT 'YYYY-MM-DD') (CHAR(10))
它们都返回相同的结果,并且几乎都不需要时间。当我在真实数据上使用它时,第一个运行大约快 2 秒,但我不确定这是否重要。