Código
current_date as DATA,
extract(month from current_date) as MesCorrente,
extract(day from current_date) as DiaCorrente,
extract(year from current_date) as AnoCorrente,
(case extract(month from current_date)
when 1 then 'Janeiro'
when 2 then 'Fevereiro'
when 3 then 'Março'
when 4 then 'Abril'
when 5 then 'Maio'
when 6 then 'Junho'
when 7 then 'Julho'
when 8 then 'Agosto'
when 9 then 'Setembro'
when 10 then 'Outubro'
when 11 then 'Novembro'
when 12 then 'Dezembro'
end) as DescricaoMes,
from rdb$DATABASE
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009