SELECT DATE_FORMAT(„2017-06-15“, „%m %d %Y“); Format Description %a Abbreviated weekday name (Sun to Sat) %b Abbreviated month name (Jan to Dec) %c Numeric month name (0 to 12) %D Day of month, numeric, follwed by Weiterlesen
SET @x =0;SELECT (@x:=@x+1), a, b, c FROM tab; ———- Beispiel:drop table p_music_auf_LP_mit_id ; set @x =0;create table p_music_auf_LP_mit_idSELECT(@x:=@x +1) AS id, year, interpret_lastname, interpret_prename, albumFROM p_music_auf_LP;
Web-Seite hierzu number_format — Formatiert eine Zahl mit Tausender-Trennzeichen number_format( float $num, int $decimals = 0, ?string $decimal_separator = „.“, ?string $thousands_separator = „,“): string Parameter-Liste ¶ num Die zu formatierende Zahl. decimals Bestimmt die Anzahl an Nachkommastellen. decimal_separator Bestimmt das Trennzeichen für die Nachkommastellen. thousands_separator Bestimmt das Tausendertrennzeichen. Rückgabewerte ¶ Weiterlesen