Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Workaround um die MySql-Limit-Klausel auf dem MS-SQL-SERVER ab 2005 nachzubilden

Empfohlene Antworten

Veröffentlicht

Moin,

ich habe heute nach unendlichem Gefummel (endlich) einen Workaround gefunden, um die MySql-Limit-Klausel auf dem MS-SQL-SERVER ab 2005 nachzubilden.

Dabei wird aus


Select bla 

from blupp 

order by knurpsel 

limit 30, 20


Select * from 

(

    Select row_number() over (order by knurpsel) as MyRowNumber, bla 

    from blupp

) as Temp

where MyRowNumber between 30 and 50

Vielleicht kann das ja noch mal jemand gebrauchen.

Viele Grüße

Reinhold

ah, super.

was noch geht:

SELECT bla  FROM (

SELECT TOP 5    *

FROM

    (

       SELECT TOP 15

          *

       FROM

          blupp 

       ORDER BY

          knurpsel 

    )

ORDER BY

    knurpsel DESC

)

ORDER BY knurpsel 

auf gut deutsch also zuerst die ersten 15 und von denen die letzten 5 ;)

s'Amstel

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.