oracle sqlplus wrapping results

后端 未结 4 1245
时光说笑
时光说笑 2021-01-07 16:10

When I run a query like:

SELECT * FROM CAR;

the results appear but each row wraps to several lines.

How can I stop this wrapping so

4条回答
  •  借酒劲吻你
    2021-01-07 16:44

    Had the same problem, even after changing set lines to a big number:

    select * from dba_directories;
    
    OWNER                          DIRECTORY_NAME
    ------------------------------ ------------------------------
    DIRECTORY_PATH
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------
    SYS                            DPUMP_DIR
    C:\xxx
    
    SYS                            CLEAN_PUMP_DIR
    D:\yyy
    
    SYS                            TCMCLEAN_DPUMP_DIR
    C:\zzz
    

    The way to do it was to use also: set wrap off

    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    ------------------------------ ------------------------------ ------------------------------------------
    SYS                            DPUMP_DIR                      C:\xxx
    SYS                            CLEAN_PUMP_DIR                 D:\yyy
    SYS                            TCMCLEAN_DPUMP_DIR             C:\zzz
    

提交回复
热议问题