Seite 1 von 1

Re: CONCAT-Funktion

Verfasst: Fr, 12.03.2010 10:17
von komma4
Zeige uns doch mal das SQL der Abfrage...

Re: CONCAT-Funktion

Verfasst: Fr, 12.03.2010 14:43
von komma4

Code: Alles auswählen

SELECT  CONCAT( "Anzahl", "Text" )  AS "Anzahl" FROM "test" 
Ungetestet!

Manche DBMS sind case-sensitive...probiere erstmal ohne das CONCAT


Viel Erfolg!

Re: CONCAT-Funktion

Verfasst: Fr, 12.03.2010 16:29
von Barlee
es liegen unterschiedliche Formate vor. Daher das <OBJECT>.

Benutze CAST() und das Ergebnis ist das von Dir gewünschte.

Code: Alles auswählen

SELECT "nr", "anzahl", "text", CONCAT( CAST("anzahl" AS CHAR), "text" ) FROM "test"."anzahl" AS "anzahl"
Gruß Barlee