MySQL BLOG
viernes, 18 de abril de 2025
MySQL case
mysql> set @i=4;
mysql> select case @i
-> when @i>3 then'A'
-> else 'B'
-> end as t;
------------
mysql> select case
-> when 5>4 then 'A'
-> when 5<6 then 'B'
-> else 'C'
-> end as t;
+---+
No hay comentarios:
Publicar un comentario
Entrada más reciente
Entrada antigua
Inicio
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario