|
Interesting, try with a temporary table + cursor, the important thing is to make a loop and record
If you have time, you must write a play for yourself, the landlord ’s idea is very wonderful.
select num from numtable where num% @ i <> 0
numtable stores raw data 2-500, @i is a loop variable
You can use a cursor to make a small loop, and try to filter it with a surface sentence to see if it can come out |
|