The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Alan.
Asked: November 07, 2023 - 4:02 pm UTC
Last updated: January 17, 2024 - 5:50 am UTC
Version: 23.1
Viewed 1000+ times
SQL> conn scott/tiger@pdb21a Connected. SQL> create or replace 2 view v_emp as 3 select * from emp 4* where deptno = 10; View V_EMP created. SQL> create table all_Objects 2* as select 'SCOTT' owner, 'V_EMP' object_name, 'TABLE' object_type from dual; Table ALL_OBJECTS created. SQL> unload v_emp format csv column_names on delimiter , enclosures "" encoding UTF8 row_terminator default ** UNLOAD Start ** at 2024.01.17-13.47.26 Export Separate Files to C:\tmp DATA TABLE V_EMP File Name: C:\tmp\V_EMP_DATA_TABLE.csv Number of Rows Exported: 3 ** UNLOAD End ** at 2024.01.17-13.47.26 SQL> drop view v_emp; View V_EMP dropped. SQL> drop table all_objects; Table ALL_OBJECTS dropped.
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library