I need to create table with columns named "from" and "to".
Hi guys.
I need to create table with columns named "from" and "to".
But I get and when I put in double quotes then I get
Please tell me how I can solve it.
here is my code
6 Replies
quickest-silver•2y ago
Table names can't be a variable.
I think one thing you can try is constrcut the query before passing it to the
sql functionrising-crimsonOP•2y ago
Why table names can't be variable?
quickest-silver•2y ago
well you can't parameterize a table name and the tagged templates convert the variables into parameters.
rising-crimsonOP•2y ago
What do you mean ?I don't understand what I should do
quickest-silver•2y ago
So something like this:
quick question: why do you need to do this though?
https://discord.com/channels/1176467419317940276/1178738361276563546/1255210082829078580 This is another possible reason why your code doesn't work
rising-crimsonOP•2y ago
Yes, that was the reason
Thanks man for your help