Anyone know how to execute dynamic SQL in codewars' postgres server? #3047
Unanswered
ChairmanMawh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Just curious, if I had an sql like:
Which today would produce a resultset like:
How do I then immediately execute this dynamically generated SQL, to form the actual output?
i.e. How would I execute the original query it in the codewards SQL panel, such that the output was immediately this (today):
And tomorrow the same original query output would be:
And so on?
i.e. If I write an SQL whose output is a single string containing a valid SQL, how do I execute the query inside that string and retrieve its output as the output of the challenge?
Beta Was this translation helpful? Give feedback.
All reactions