In SQL Server, how to select rows 10, 20, 30, 40, etc., where RowID is an equal integer break (+10). There are 50k lines, so using IN (1,10,20, etc.) is time consuming.
SELECT * FROM 'TABLENAME' WHERE RowID = 10 (+ 10)
You can use modulo for this.
SELECT * FROM `table` WHERE (`id` % 10) = 0 SELECT * FROM `table` WHERE (`id` MOD 10) = 0 SELECT * FROM `table` WHERE !MOD(`id`, 10)
Anyone should do.
I suspect you need to use the rowId module operator mod 10 = 0. some of this order.
Source: https://habr.com/ru/post/949389/More articles:Browser behavior for invalid / self-signed certificates - androidHow to access .class from a class using Generic? - javaRejection: Don't animate - iosIs it possible to have a rounded / curved side rather than corners? - javascriptselect a variable from the drop-down list and pass it as an argument to reactivePlot in R Shiny - rVBA Excel Range () with Cell argument - vbaPython: initialize a multidimensional list - pythonHamcrest and ScalaTest - scalaWhere is the dart: uri now? - uriMTLModels in MTLModels? - iosAll Articles