Home > database > To find the serial number of the missing number
To find the serial number of the missing number
Time:10-01
Build table below Create table test (id number (4)); Insert into test (id) values (1); Insert into test (id) values (2); Insert into test (id) values (4); Insert into test (id) values (5); Insert into test (id) values (6); Insert into test (id) values (8); Insert into test (id) values (9);
How to query the missing number? Serial number should be 1 to 9, but missing 3 and 7 The query results should be 3, 7