How to input the data queried in SQL Plus?

Updated on technology 2024-03-23
7 answers
  1. Anonymous users2024-02-07

    sqlplus user/pwd@sid >

    Write the SQL that queries the data, and add a at the end, you try.

  2. Anonymous users2024-02-06

    When the result is output in Oracle's SQLPLUS, there is no result by default.

    For example, sql> begin

    2 dbms_'Results');

    3 end;

    It turned out to be nothing.

    Workaround: Enter the command in sqlplus:

    sql>set serveroutput on. Test.

    sql> begin

    2 dbms_'Results');

    3 end;

  3. Anonymous users2024-02-05

    There is no way to set the column width uniformly, but you can set the width according to the specific column name, use col .format ..method.

    Character type :

    sqlplus> col Column Name Format A10 This sentence specifies that the display width of the column name is 10 characters per line.

    sqlplus> col column name format 99999 This is the set number type.

    You can set up the usual ones in $Oracle Home SQLPLUS Admin, so you don't have to set them every time.

  4. Anonymous users2024-02-04

    It seems to be in the setting of the window of sqlplus.

  5. Anonymous users2024-02-03

    View the existing tables or mountain and land objects in the database balance: 1. select * from cat ; 2、 select * from tab ; 3、 select * from dba_objects ;

  6. Anonymous users2024-02-02

    Some tables are abnormal, especially the tables that come with the system, and there are many fields.

    However, tables like the ones we created ourselves can still be adjusted in the following ways:

    set linesize 150;-150 indicates the number of characters displayed in each line, and you can change the appropriate size yourself.

    If there are many fields, you need to set the cmd window width to be longer.

  7. Anonymous users2024-02-01

    with justify

    This can change the way the fields are displayed.

    Usage: hole key.

    column ename justify center;

    column empno justify center;

    I tried it, and I kind of forgot if it was written like this, and it seems to be. Nagaoqiao.

Related questions
7 answers2024-03-23

Scan Traces: Scan Traces (red information indicates clickable to open related information). >>>More

15 answers2024-03-23

If the bonus is empty, then your salary plus bonus sal+comm is also empty. >>>More

23 answers2024-03-23

You're asking questions here.

I thought I had an answer, and I was overjoyed. >>>More

12 answers2024-03-23

In order, remember to turn it off when you are finished.

5 answers2024-03-23

Refers to the implementation algorithm that selects the query execution plan and relational operator when executing a distributed query. According to the different system environments, the algorithms used in query optimization are also different, which are usually divided into long-distance WAN environment and high-speed LAN environment, and the difference is mainly in the bandwidth of the network. For unary operators, query optimization methods in a centralized database can be employed. >>>More