date function

Dear Master MariaDB,

How to get function like access sql

In acces sql now() result '2016-11-01' select date()-1 result '2016-10-31'

In MariaDB How I get that result ?

I have try the result is '20161100' in mariaDB

Thank You Agustino

Answer Answered by Markus Mäkelä in this comment.

The DATE_SUB and DATE_ADD functions allow you to do arithmetic operations on dates.

Thank's for replying


Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.