tiko165 Posted July 19, 2016 at 04:53 PM Report #597719 Posted July 19, 2016 at 04:53 PM O que eu pretendo fazer no MySQL, é calcular uma data à dois 2 meses (Hoje - 2 meses) e a isso, juntar ainda algum texto. » Data à 2 meses = "2016-05-19". Resumindo, supondo esta data, queria juntar texto, e a data sem traços. Resultado final seria +/- isto "Texto20160519". Como poderei faze-lo?
HappyHippyHippo Posted July 19, 2016 at 05:10 PM Report #597722 Posted July 19, 2016 at 05:10 PM select CONCAT('Texto', REPLACE('2016-05-19', '-', '')) as result;[/Code] 1 Report IRC : sim, é algo que ainda existe >> #p@p Portugol Plus
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now