I am using Python-2.7 and mysql database and wish to retrieve data from table student using select statement by passing either 2 or any one of 2 parameters as below-
SELECT * FROM student_details where student_city='some_City' or student_stream='Science' or both
parameters will be passed to that function which operated the SELECT statement.
Guidance / Help in any form to make me understand how can I code the where clause part. I don't want to make separate queries.
Apologies if I am asking the question incorrectly or repeating the question. Thanks in advance :)