mysql - how to select rows of a table in 3th multiply order in sql like 3,6,9 etc -
My table contains 1024 rows and two columns.
I 3,4,6, etc. Is this possible in the SQL query, if possible, what is the code for it ..
A relational database
Assume that you have a column by which you can "3" "Or" 4 ", you can order results to define a line, work with the following postgrad:
choose (choose from col1, col2, col3, row_number ()) (order by your_sort_column) as rn from your_table) where rn in (3,4,6);
Where your_sort_column
defines those orders or rows, it can be an incremental ID or timestamp column that stores the time of the entry or update the time.
Comments
Post a Comment