Autor Tema: CODIGO MYSQL PARA SABER DIRECCION FISICA O MAC  (Leído 1722 veces)

0 Usuarios y 1 Visitante están viendo este tema.

obethermy

  • Megabyte
  • ***
  • Mensajes: 116
  • Reputación: +6/-7
    • Ver Perfil
CODIGO MYSQL PARA SABER DIRECCION FISICA O MAC
« en: Octubre 09, 2015, 03:00:27 pm »
CODIGO MYSQL
Código: (SQL) [Seleccionar]
select  uid                           AS uid
,       concat(
                substring(uid, 25,2)
        , ':',  substring(uid, 27,2)
        , ':',  substring(uid, 29,2)
        , ':',  substring(uid, 31,2)
        , ':',  substring(uid, 33,2)
        , ':',  substring(uid, 35,2)
        )                             AS uuid_to_mac
from    (select uuid() uid)           AS alias;
select  uid                           AS uid
,       concat(
                substring(uid, 25,12)
        )                             AS uuid_to_mac
from    (select uuid() uid)           AS alias;