Ver Mensaje Individual
  #2  
Antiguo 22-01-2016
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
Intenta algo así:

Código SQL [-]
select
  week(curdate(),2) hoy,
  curdate() - INTERVAL (dayofweek(curdate()) - 1) day inicio,
  curdate() + INTERVAL (7 - dayofweek(curdate())) day fin

LineComment Saludos
Responder Con Cita