I am trying to select similar data from three different tables.
example: Select * from customer_products where customer = xcustomer
Select * from customer_sales where customer = xcustomer
Select * from accounts where customer = xcustomer
How can I pass the table to query in variable
something like : Select * from $var where customer = xcustomer
Where $var = customer_products , customer_sales or accounts