i have many tables that contains same column i want to search for a value and return all the line for example
Tab1
col1 col2 col3
val1 val2 val3
val7 val8 val9
Tab2
col1 col2 col3
val4 val2 val5
i want the sql syntax that return if i search in my java code for val2 the two lines
Tab1
col1 col2 col3
val1 val2 val3
and
Tab2
col1 col2 col3
val4 val2 val5
thank you