Parameter INSIDE LIKE

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
dooh
Posts: 30
Joined: Sun 14 Jan 2007 21:11

Parameter INSIDE LIKE

Post by dooh » Mon 29 Jan 2007 17:45

Hi,

How can i create and select command with a paremter inside a LIKE funtion?

ex:
select name from clients where name LIKE '%' + :name + '%'

Some idea?

Alexey
Posts: 2756
Joined: Mon 13 Mar 2006 07:43

Post by Alexey » Tue 30 Jan 2007 11:20

What's wrong with this way:

Code: Select all

select name from clients where name LIKE :name
?

Post Reply