Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Oracle] Case Like i pusty Varchar
--smokeing--
post 9.08.2012, 10:05:03
Post #1





Goście







Witam.

  1. SELECT
  2.  
  3. (CASE
  4. WHEN (Tabela.Imie NOT LIKE 'smokeing') THEN
  5. 'N/A'
  6. ELSE
  7. CAST(Tabela.Numer AS VARCHAR(16))
  8. END) AS Tabela.Numer
  9.  
  10. FROM Tabela


Warunek w nawiasie zwraca wartość 0 gdy Imie jest smokeing i gdy Imie jest puste.
Dlaczego tak jest?

Pozdrawiam smokeing.
Go to the top of the page
+Quote Post

Posty w temacie
- -smokeing-   [Oracle] Case Like i pusty Varchar   9.08.2012, 10:05:03


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 03:18