Jump to content

Selecionar data do mes e ano actual


ricardocoimbra

Recommended Posts

Boax...

Existem varias maneiras ..

Uma delas:

SELECT * FROM tabela where extract(Year_month from Campo)=200711  ;

ou

SELECT * FROM tabela where Campo between 20071101 and 20071130;

PS:

Depois de voltar a ler a tua pergunta:

SELECT * FROM tabela where  extract(Year_month FROM Campo)=extract(year_month from now());

Para ter os registos do mes corrente.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.