SQL: ORDER BY using a substring within a specific column… possible?

前端 未结 7 745
清酒与你
清酒与你 2020-11-30 12:02

I have a database whose columns are npID, title, URL, and issue.

Here is an example of two years\' entries:

npID               title               UR         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 12:21

    SELECT Column1, row_number() over(order by substring(column2,280,9)) 
    FROM YourTable 
    

    This will give the order by of substring column2.

提交回复
热议问题