2
I need to do a birthday consultation this month. But I would like it to be automatic, and I don’t need to type the month. Below is the example I did, typing the month.
Note: my field is dt_nasc (TIMESTAMP).
SELECT * from top_007 where extract(month from dt_nasc)='9'; //referente ao mes 9
Could someone help me?
It’s postgres or another bank?
– rray
For a conclusive reply it is necessary to inform the
SGBD
used– Sorack
Is mysql or another database?
– Guilherme Nascimento