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.

MySQL-Selektion funzt nicht

Empfohlene Antworten

Heyho.

ich habe folgendes Problem:

Wenn ich: SELECT name, punkte FROM user ORDER BY punkte DESC;

benutze, sortiert er eigentlich einwandfrei.

hab ich jedenfalls gedacht. Sobald ein user über 10 Punkte hat, wird er nach unten geschoben. Beispiel:

Sortierung1:

1.Platz:nameX 9 punkte

2.Platz:nameY 6 punkte

3.Platz:nameZ 3 punkte

Sortierung1:

1.Platz:nameY 6 punkte

2.Platz:nameZ 3 punkte

1.Platz:nameX 10 punkte

Ich denke mal, dass er dort sortiert immer nur die erste Stelle sortiert. Anders kann ich es mir nicht erklären. Was mache ich falsch?

Gruß FiSiHRO

poste mal die felddefinition der tabelle user.

besitzt das feld punkte einen numerischen oder alphanumerischen datentyp?

s'Amstel

oh sry habschganz vergessen.

Der Feldtyp von Punkte ist ganz einfach int.

Gruß FiSiHRO

Ach son mist.

Da hatte ich wohl nen fehler gemacht. ist doch nicht int sonder varchar(6) uiui sollt ich mal ändern.

Aber sollte wohl gehen wenn ich es auf int umstelle oder?

Sry kommt hoffentlich nich wieder vor *g*

Gruß FiSiHRO

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.