Jump to content

LIKE question


killboy

Recommended Posts

Hi there.I've been reading about the LIKE condition, and it says that it can be used with % or _My question is: what happens when I use it without these signs?For example:

select id from user where name like '[some string here]'

I've run it and it returns a normal result, but I want to know what is it used for when I use it without those signs?Thanx.

Link to comment
Share on other sites

In that case it is the same as =. So

select id from user where name like '[some string here]'

Is the same as

select id from user where name = '[some string here]'

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...