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.

Order By MySQL

Empfohlene Antworten

Halli Hallo ;)

kann mir bitte jemand bei der sortierung von datensätzen helfen?

ich habe eine Tabelle mit 3 Spalten:

Wenn ich einen select auf diese Tabelle mache, möchte ich die datensätze sortieren. Das ist ja eigendlich kein Problem, blos ich möchte nach 2 spalten sortieren.

quasi: select * from test order by spalte3 and order by spalte2 ...

das geht natürlich nicht *gg* ...

ereichen möchte ich also, dass erst nach spalte3 soritiert wird und dann nach spalte2, aber abhängig von der spalte3 :)

ich hoffe ihr wisst was ich meine *gg*

danke und Mfg Jake

Hi Jake,

du kannst soviele order-Anweisungen machen wie du möchtest, du musst sie nur durch ein Komma trennen:

select * from test order by spalte3, spalte2

möglich ist auch:

select * from test order by spalte3 asc, spalte2 desc

ob aufsteigend oder absteigend musst du für jede Spalte einzeln angeben.

ciao

Sir Barry :marine

Hi Jake,

ich stimme SirBarry zu!

Hilfe bekommst du sonst auch in der Doku von mysql.com

Gruß Jule

danke :===)))

das es noch ein komma gibt, hab ich natürlich vergessen *bggg*

mfg Jake

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.