The first one is pure Structured Query Language. The second is a mix of SQL
and VB so there is more processing that has to be done to resolve the SQL.
The first one is better. Also, don't use InStr anymore. In .NET, string
objects have string methods:
dim x as string
dim y as integer
y = x.IndexOf(searchstring)
Similarly, rather than date/time functions (now(), time(), hour(), etc.) use
dateTime object methods, etc.
"RSusanto" <(E-Mail Removed)> wrote in message
news:uYTJh$(E-Mail Removed)...
> There are 2 type I tried,
>
> SELECT * FROM ..LIKE ...
> SELECT * FROM WHERE xx= INSTR(searchstring)
>
> now, which one of them is the best ?
>
> "Brian Brown" <(E-Mail Removed)> wrote in message
> news:E0CB56B1-D56B-40F1-BD00-(E-Mail Removed)...
>> Hi,
>>
>> Can you be more specific? What are you searching for? Can you give us a
>> breif description of what you are attempting? Please reply to this post
> with
>> the information so the group may assist you better.
>>
>> Thanks
>
>
|