We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
i have an array (columnsToSelect) of columns to which i want add another one
columnsToSelect.push("(firstname || ' ' || lastname) as fullname");
SELECT ${sql(columnsToSelect)} FROM ${sql(table)}
I tried different combinations with " and ' but without success.
error: missing FROM-clause entry for table
missing FROM-clause entry for table
Is this possible?
thanks
The text was updated successfully, but these errors were encountered:
You need to use fragments to create the as ? parts.
as ?
https://github.com/porsager/postgres?tab=readme-ov-file#building-queries
Sorry, something went wrong.
No branches or pull requests
Hi,
i have an array (columnsToSelect) of columns to which i want add another one
columnsToSelect.push("(firstname || ' ' || lastname) as fullname");
SELECT ${sql(columnsToSelect)} FROM ${sql(table)}
I tried different combinations with " and ' but without success.
error:
missing FROM-clause entry for table
Is this possible?
thanks
The text was updated successfully, but these errors were encountered: