The OR operator displays a record if either the first condition OR the second condition is true.
Syntax :-
SELECT * FROM table_name
WHERE column_name = 'value'
OR column = 'value';
Example :-
SELECT * FROM new_tab
WHERE name = 'Anu'
OR stu_id = 5;
First we see a table :-
Example :-
Syntax :-
SELECT * FROM table_name
WHERE column_name = 'value'
OR column = 'value';
Example :-
SELECT * FROM new_tab
WHERE name = 'Anu'
OR stu_id = 5;
First we see a table :-
Example :-
0 Comments:
Post a Comment