sign(number). A positive number greater than 0 returns 1, equal to 0 returns 0, and a negative number less than 0 returns -1.
select sign(1) from dual;
This function can judge the value of positive and negative numbers.
---------------- Small tail segmentation ------------------------------- ---------
The record of the rookie is also progress~ If it helps you, then give it a thumbs up. -----From the programmer radish without code