WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   SQL - INT to Char mit führenden 0? (http://www.wcm.at/forum/showthread.php?t=231315)

pong 20.10.2008 20:03

SQL - INT to Char mit führenden 0?
 
Hallo,

weiß jemand zufällig, wie man ein Varchar aus einem Int/decimal "casted", aber mit führenden 0?

pong

pong 20.10.2008 20:12

aja, zur Zeit hab ich

Code:

CAST(DEC(MOD(mein_feld, 60),3,0) AS VARCHAR(3))
und dies klappt leider nicht

pong 21.10.2008 08:31

gefunden

DIGITS

pong

ZombyKillah 26.10.2008 23:04

Welche Datenbank?
MySQL, MS SQL, Oracle?


Alle Zeitangaben in WEZ +2. Es ist jetzt 22:18 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag