+ 1
How to do SELECT * FROM table WHERE anycolumn LIKE '℅something℅' in SQL
8 ответов
+ 1
For eg- there is an Employee table.
SELECT * FROM Employee
WHERE name LIKE "%a%";
This will fetch all details of the employees whose name contains the letter "a".
0
If i don't want to specify witch column?
0
Then there is no point of using LIKE because it is usually used with the WHERE clause and it means you have to specify a condition.
0
I want select all rows from anycolumn that containt '℅some%'
0
I want to filter any columns
0
Kensy Master Will that is not possible the way you want it.
You must apply LIKE to all columns, each separated by a OR condition.
0
If i have 100 columns
0
Yea I can see where you are heading with that but unfortunately I don't think you can do that.
Still let us wait for more responses.