Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dynamic where clause #975

Unanswered
basilex asked this question in Q&A
Discussion options

Guys!
The question is:

How could I create dynamic WHERE clause?
Database contains chunks of the query conditions (to create another query) described below:

"IN ('active', 'inactive')"
"LIKE 'Some conditi%'"
"'Red' AND 'Blue' AND 'Green' "

and I need to create such WHERE clauses dynamically... (
Probably it's time to think about some additional mysterious interface in sqlc
to make it possible execute queries like sqlx is doing right now?

Any help would be appreciated.
Thanx!

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /