I have the query below.
I aim to somehow exclude the entries between 4 and 14 and not show them.
SELECT code, register, data
FROM code
WHERE code
BETWEEN 4
AND 14
ORDER BY code
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use
NOTafter columncode.Or you can also use ‘NOT’ before column
codeJust see this SQLFiddle
Ref. MySQL: expr NOT BETWEEN min AND max