Skip to content
\n

PS: I don't like the idea of dynamic FROM clause. This is simply to reduce the code size (m4 macros is a good alternative:). An added advantage with temporary table is that I get a cache for some 6 queries further along.

\n

Thanks

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

Hello, and welcome to SQLPage!
\nI think there may be a misunderstanding about how temporary tables or connection handling in SQLPage works... I wrote a short post on the subject recently: #871 (comment)

\n

Using a fixed static name for a temporary table should just work, no matter how many requests you process concurrently.

","upvoteCount":1,"url":"https://github.com/sqlpage/SQLPage/discussions/874#discussioncomment-12672892"}}}

Is it possible to use dynamic table name in "FROM"? #874

Answered by lovasoa
vsbabu asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, and welcome to SQLPage!
I think there may be a misunderstanding about how temporary tables or connection handling in SQLPage works... I wrote a short post on the subject recently: #871 (comment)

Using a fixed static name for a temporary table should just work, no matter how many requests you process concurrently.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@vsbabu
Comment options

Answer selected by vsbabu
Comment options

You must be logged in to vote
0 replies
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