user1269625
user1269625

Reputation: 3209

MySQL Where date is not equal to current year

I have this syntax here:

date_record != YEAR(CURDATE())

and all the record returned are have the year 2013...What am I doing wrong?

Upvotes: 0

Views: 1194

Answers (1)

Trudysfun
Trudysfun

Reputation: 181

maybe just compare the years...

YEAR(date_record) != YEAR(CURDATE())

Upvotes: 2

Related Questions