SELECT * FROM users
WHERE birth_date
between '%-02-02' AND '%-05-06'
engrmshahzad
0
Newbie Poster
Recommended Answers
Jump to PostAssuming MySQL, see the docs here.
BETWEEN
requires a minimum and maximum value, and does not support a wildcard likeLIKE
does.
All 3 Replies
engrmshahzad
0
Newbie Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.