|
EMP |
ID |
Name |
Country |
Salary |
1 |
Vijay |
India |
6000 |
2 |
Bill |
USA |
8000 |
3 |
Kris |
France |
3000 |
|
%
SELECT * FROM EMP WHERE Name LIKE 'V%'
_(Underscore)
SELECT * FROM EMP WHERE Name LIKE '_i_ay%'
[ ]
SELECT * FROM EMP WHERE Name LIKE '[Vi]%'
[a-g]
SELECT * FROM EMP WHERE Name LIKE '[t-z]%'
[^ ]
SELECT * FROM EMP WHERE Name LIKE '[^BK]%'
|
Output |
ID |
Name |
Country |
Salary |
|
1 |
Vijay |
India |
6000 |
|
|