如何在Oracle中获取查询的执行时间

编程入门 行业动态 更新时间:2024-10-27 22:27:19
本文介绍了如何在Oracle中获取查询的执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好我是Oracle新手。所以我有两个问题: 1)我们可以像在SQL中一样从select查询中获取所有记录。现在我正在以50为一组获得记录。在ORACLE中是否有任何需要立即获取所有记录的事件。 2)如何获取查询省略时间是指通过编写SET STATISTICS IO ON,查询在Sql中执行任务所花费的总时间。 提前谢谢!

Hi I am very new to Oracle. So I have two questions: 1) Can we get all records from select query as in SQL. As right now I am getting record in group of 50. Is there any seeting need to do in ORACLE to get all records at once. 2) How To get Query excetion time means total time taken by Query to do task as in Sql by writing SET STATISTICS IO ON. Thanks in advance!

推荐答案

For 1: 这是您正在使用的查询执行工具中的设置。比如Toad或SQL Developer。 在SQL Developer上 - 转到工具 - >偏好 - >数据库 - >高级参数并将此设置从50更改为您喜欢的任何内容。 如果在您的工具版本上,F9键一次返回50条记录,您可以使用F5键返回所有记录。 /> 2: 这 [ ^ ]应该有所帮助。 For 1: This is a setting in the query execution tool that you are using. Such as Toad or SQL Developer. On SQL Developer - Go to Tools -> Preferences -> Database -> Advanced parameters and change this setting from 50 to whatever you like. If on your version of the tool the F9 key returns the set of 50 records at a time, you can use the F5 key to return all your records. For 2: This[^] should help.

更多推荐

如何在Oracle中获取查询的执行时间

本文发布于:2023-10-17 06:28:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1500043.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:执行时间   如何在   Oracle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!