Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIKE in query #14

Closed
harikt opened this issue May 3, 2012 · 3 comments
Closed

LIKE in query #14

harikt opened this issue May 3, 2012 · 3 comments

Comments

@harikt
Copy link
Member

harikt commented May 3, 2012

How do you make a LIKE statement ?

SELECT * FROM table WHERE {$column} LIKE :{$column}

@pmjones
Copy link
Member

pmjones commented May 3, 2012

Yes, and then you would bind $data[$column] = '%$value%' to the query.

@pmjones
Copy link
Member

pmjones commented Jul 6, 2012

@harikt Does that solve it for you?

@harikt
Copy link
Member Author

harikt commented Jul 6, 2012

@pmjones Yes I guess. I will reopen if it doesn't work .

It was for https://github.com/harikt/Hari.Blog/blob/master/src/Hari/Blog/ORM/DataSource/Db.php#L47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants