I want to create a search bar in python. The search bar will search records from table of MySQL database. Table has 9 fields. I want that search bar searches from all the 9 fields and show the result. But I can use only 2 fields at most.
command = "SELECT * FROM table WHERE field1 or field2 LIKE '%PARAM%"
I Want something like this...
command = "SELECT * FROM table WHERE field1 or field2 or field3 or field4 or field5 LIKE '%PARAM%"
But multiple or's are not supported in SQL commands
So is there any way I can search from every field using LIKE Operator
Field1 like '%' OR field2 like '%' OR...... Use SQL parameter to not repeat