Skip to content

Could you please help with query? #16

Answered by bokwoon95
rinuthomashm asked this question in Q&A
Discussion options

You must be logged in to vote

You can do it like this:

q := sq.
    Select(table1.CREATED_AT, table1.ACCOUNT_ID).
    From(table1).
    Where(
        table1.COL3.EqString("02d206dc"),
        sq.Predicatef(
            "? < ?",
            sq.RowValue{table1.COL1, table1.COL2},
            sq.RowValue{"2021-01-05 10:15:10.000000", "5c08eb6b-6006-51be-9a5d-eeeaa890e0d6"},
        )
    )

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rinuthomashm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants