SORU
14 EKİM 2009, ÇARŞAMBA


Nasıl MySQL iki değer max almak için?

Denedim ama başarısız oldu:

mysql> select max(1,0);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual 
that corresponds to your MySQL server version for the right syntax to use 
near '0)' at line 1

CEVAP
14 EKİM 2009, ÇARŞAMBA


GREATEST() kullanın

E. g.:

SELECT GREATEST(2,1);

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Bart Baker

    Bart Baker

    1 Aralık 2006
  • bunnyboxx

    bunnyboxx

    17 NİSAN 2008
  • TechSmartt

    TechSmartt

    29 Aralık 2010