Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

SQL Server Select #378

Open
d30jeff opened this issue Apr 15, 2019 · 1 comment
Open

SQL Server Select #378

d30jeff opened this issue Apr 15, 2019 · 1 comment

Comments

@d30jeff
Copy link

d30jeff commented Apr 15, 2019

How do I produce this query?

SELECT 'john', 'wick'

@MiloWang2048
Copy link

if you were meant to select two strings, squel like:

const queryString = squel
	.select()
	.field('\'john\'')
	.field('\'wick\'')
	.toString();

else you were meant to select two fields, squel like:

const queryString = squel
	.select({ autoQuoteFieldNames: true })
	.field('john')
	.field('wick')
	.toString();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants