Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Spool command about oracle

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Use the spool command to copy the results of the output in sql*plus to a specified file, or to copy the results of the query

Send it to the printer until you use the spool off command directly.

The syntax of the spool command is:

Spool [file_name [create | replace | append] off | out]

Where file_name specifies an operating system file

Create will create a specified file_name file

Replace replaces the specified file if it already exists

Append appends the content to an existing file

Off stops copying the output from sql*plus to the file_name file and closes the file.

Out starts this function to copy the output structure from sql*plus to file_name.

Examples are as follows:

Then go to the contents of the a.sql file under / home/oracle

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report