Click here to Skip to main content
15,995,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What Is equal of this select with contains()?

SQL
select * from student
where name like '%a%'



plz F1F1F1F1
Posted
Comments
RedDk 23-Mar-13 13:40pm    
The predicate CONTAINS() can't be used on anything other than a FULLTEXT cataloged table ... set that up by creating a FULLTEXTT INDEX. The index is not a default quality.

1 solution

Try:
SQL
SELECT * FROM student WHERE CONTAINS(name, "a")
 
Share this answer
 
Comments
mojtaba391 23-Mar-13 9:05am    
Your answer did not work
OriginalGriff 23-Mar-13 9:27am    
Not a very helpful response.
What did it do? What didn't it do? Any messages? How did you use it?
Remember, I can't see your screen!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900