I want a piece of data from the Oracle database in the development program. As the question. Obtain the second data.
I want a piece of data from the Oracle database in the development program. As the question. Obtain the second data.
I want a piece of data from the Oracle database in the development program. As the question. Obtain the second data. It indicates: t_ltr_kjmx
Answer: select * from (select * from t_ltr_kjmx order by termcode desc) where playname = 'd3 'and rownum <= 2
Minus
Select * from (select * from t_ltr_kjmx order by termcode desc) where playname = 'd3 'and rownum <= 1
Analysis: The Role of minus in Oracle is simply to stay the same. The first line of SQL indicates querying the first two pieces of information. The third row of SQL indicates that the first row of data is queried. Minus
Review and stay the same
Result:
,