在sql*plus中如何查看一些命令的用法

來源:互聯網
上載者:User

在sql*plus中如何查看一些命令的用法

有些時候在使用sql*plus時忘記了一些命令的用法,其實我們大可不必到什麼地方去查,我們只需要在sql*plus中查看就可以了,

使用help | ? parameter

例如在sql*plus中:

SQL> help column

 COLUMN
 ------
 Specifies display attributes for a given column, such as:
    - text for the column heading
    - alignment for the column heading
    - format for NUMBER data
    - wrapping of column data
 Also lists the current display attributes for a single column
 or all columns.

COL[UMN] [{column | expr} [option ...] ]

where option represents one of the following clauses:
    ALI[AS] alias
    CLE[AR]
    ENTMAP {ON|OFF}
    FOLD_A[FTER]
    FOLD_B[EFORE]
    FOR[MAT] format
    HEA[DING] text
    JUS[TIFY] {L[EFT] | C[ENTER] | R[IGHT]}
    LIKE {expr | alias}
    NEWL[INE]
    NEW_V[ALUE] variable
    NOPRI[NT] | PRI[NT]
    NUL[L] text
    OLD_V[ALUE] variable
    ON|OFF
    WRA[PPED] | WOR[D_WRAPPED] | TRU[NCATED]

也可以使用?,如下:

SQL> ? show

 SHOW
 ----
 Shows the value of a SQL*Plus system variable, or the current
 SQL*Plus environment. SHOW SGA requires a DBA privileged login.

SHO[W] option

 where option represents one of the following terms or clauses:
    system_variable
    ALL
    BTI[TLE]
    CON_ID
    CON_NAME
    ERR[ORS] [{FUNCTION | PROCEDURE | PACKAGE | PACKAGE BODY | TRIGGER
        | VIEW | TYPE | TYPE BODY | DIMENSION | JAVA CLASS} [schema.]name]
    LNO
    PARAMETERS [parameter_name]
    PDBS
    PNO
    RECYC[LEBIN] [original_name]
    REL[EASE]
    REPF[OOTER]
    REPH[EADER]
    SGA
    SPOO[L]
    SPPARAMETERS [parameter_name]
    SQLCODE
    TTI[TLE]
    USER

紅色的語句就是該命令的sql語句,然後下面就是對它的一些參數的說明。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.