Oracle sqlplus statement Editing Command

Source: Internet
Author: User
First, enter the following command:

Select Emp_id, emp_name
From Employees

Input The command can be followed by a statement, for example, after the preceding statement is run, enter:

Input Where Emp_age >   30

You can get the following command:

Select Emp_id, emp_name
From Employees
Where Emp_age >   30

 The ln command is used to specify the nth line of the statement to be input. For example, after the preceding statement is run, enter:

L1

The currently selected statement line is

Select emp_id, emp_name ("*" Is used before the statement)

Command A is used to directly add characters at the end of the current line. For example, after the preceding statement is run, enter:

A, emp_dept

The executed command is:

Select Emp_id, emp_name, emp_dept
From Employees
Where Emp_age >   30


The C command is used to modify the characters in the current statement. For example, after the preceding statement is run, enter:

C / Emp_name / Emp_age /

The executed command is:

Select Emp_id, emp_age, emp_dept
From Employees
Where Emp_age >   30


The Del n command is used to delete the nth line of command. For example, after the preceding statement is run, enter:

Del 3

The executed command is:

Select emp_id, emp_age, emp_dept
From employees

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.