Re: Difference between 'LIKE' and '='

2005-02-09 Thread Gabriel PREDA
> | But I have a question: is there any difference between the following? > | SELECT lname, fname FROM contacts WHERE lname = 'smith'; > | SELECT lname, fname FROM contacts WHERE lname LIKE 'smith'; > | Sincerely, > | -Josh > My > gut hunch is that if your LIKE expression is going to contain no w

Re: Difference between 'LIKE' and '='

2005-02-08 Thread Rhino
| Hi All, | | From what I understand the LIKE keyword allows you to do things like include | wildcards and match against regular expressions. | | But I have a question: is there any difference between the following? | | SELECT lname, fname FROM contacts WHERE lname = 'smith'; | SELECT lname, fname

Re: Difference between 'LIKE' and '='

2005-02-08 Thread Joshua Beall
I should have included the context of this question when I originally asked it, but I'll include it here now with my apologies: The reason I am asking is because I have a search method in a PHP class that searchs a table based on a specific field. By way of example, you would do something like

Re: Difference between 'LIKE' and '='

2005-02-08 Thread Joerg Bruehe
Hi Joshua, all! Am Di, den 08.02.2005 schrieb Joshua Beall um 17:18: > Hi All, > > >From what I understand the LIKE keyword allows you to do things like include > wildcards and match against regular expressions. > > But I have a question: is there any difference between the following? > > SEL

Re: Difference between 'LIKE' and '='

2005-02-08 Thread Ian Sales (DBA)
Joshua Beall wrote: Hi All, From what I understand the LIKE keyword allows you to do things like include wildcards and match against regular expressions. But I have a question: is there any difference between the following? SELECT lname, fname FROM contacts WHERE lname = 'smith'; SELECT lname, fna