Oracle sqlplus Statement Edit command

Source: Internet
Author: User
Tags sqlplus
oracle| Statement First we enter such an instruction: SELECT emp_id, Emp_name
The From Employeesinput command can then add a statement after the previous instruction, such as after the statement is run: input where emp_age > 30 can get the following instruction: SELECT emp_id, Emp_name
From Employees
The WHERE emp_age > Ln command is used to specify an action on the nth line of input, such as after the statement is run: L1 the currently selected statement line is select emp_id, Emp_name (with "*" before the statement) a command is used to add characters directly to the end of the current line, such as after the above statement is run: A, emp_dept the execution of the instruction into: 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, such as when the above statement is run: c/emp_name/emp_age/the command to execute becomes: 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 instructions, such as entering after the statement is run: Del 3 the command that is executed becomes: SELECT emp_id, Emp_age, emp_dept
From Employees

Related Article

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.