Jump to content


Recommended Posts


Pretendo que o Campo Mês seja preenchido por uma trigger, que copia a Data do Campo Datas e o formata para mês.

Já tentei a formatação de várias formas e não resulta ... tenho tentado com o "date_format (Datas (), "%M")

create trigger tr_DatFmt before insert
on Tempos
for each row
set new.Mes = new.Datas;

Assim copia a data por igual, só quero copiar o Mês.


Share this post

Link to post
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.