MySQL WHERE, AND & OR syntax

2024-04-16 11:24:26 Joyti Mysql

How to use WHERE, AND & OR syntax in mysql query together?

Below we have provide example query to use WHERE, AND & OR syntax in MySQL.

SELECT * FROM your_table 
          WHERE column1='column1value' AND `column2`='column2value' 
          OR column3='column3value' AND `column4`='column4value'";?


This post is submitted by one of our members. You may submit a new post here.

Related Tricks