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.

Sortierung von SELECT-Ergebnissen

Empfohlene Antworten

Hallo zusammen,

hab folgendes Problem. Ich möchte ein SELECT Statement laufen lassen, dass ein Ergebniss sortiert über mehrere Spalten zurückliefert.

Also mal angenommen ich hätte folgende Tabelle:

tab_test

ID Name xyz abc

1 gfh 1 1

2 fdaa 1 3

3 fkfk 1 2

4 err 3 3

5 uuu 3 1

6 fka 2 1

Dann möchte ich, dass mein Ergbniss der SELECT Anweiung zuerst nach xyz sortiert ist und dann nach abc, also:

1 gfh 1 1

3 fkfk 1 2

2 fdaa 1 3

6 fka 2 1

5 uuu 3 1

4 err 3 3

Geht ORDER BY nur mit einer Spalte???

Nein,

... ORDER BY xyz ASC, abc ASC;

Gruß Jaraz

schick,

danke! darauf hätte ich ja eigentlich auch selbst kommen können :D. Das offensichtlichste fällt einem halt ned ein...

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.