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