我有这个查询:
$sql = "SELECT * FROM giorni WHERE punto = '$punto' && STR_TO_DATE(giorno, '%d/%m/%Y') ...
我需要对上一年进行类似的查询。我该怎么办%Y-1
?
我有这个查询:
$sql = "SELECT * FROM giorni WHERE punto = '$punto' && STR_TO_DATE(giorno, '%d/%m/%Y') ...
我需要对上一年进行类似的查询。我该怎么办%Y-1
?