Skip to content
New issue

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

Error in query Select LIMIT #365

Open
datdp opened this issue Sep 22, 2020 · 3 comments
Open

Error in query Select LIMIT #365

datdp opened this issue Sep 22, 2020 · 3 comments

Comments

@datdp
Copy link

datdp commented Sep 22, 2020

I'm run false query 'SELECT * FROM TBWork ORDER BY W_PrgName ASC LIMIT 1' but I can run OK query 'SELECT * FROM TBWork ORDER BY W_PrgName ASC'

Error: Spawn C:\Windows\SysWOW64\cscript.exe error
	at ChildProcess.<anonymous> (D:\Project\MKTC\do_do_day_cat_vien_read_data\node_modules\node-adodb\lib\spawn.js:120:37)
	at ChildProcess.emit (events.js:315:20)
	at maybeClose (internal/child_process.js:1021:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
	process: { code: -2147217900, message: 'Syntax error in ORDER BY clause.' },
	exitCode: 0
	}
@Doise
Copy link

Doise commented Sep 22, 2020

Are you using MS Access?
There is no LIMIT keyword in Access

@datdp
Copy link
Author

datdp commented Sep 22, 2020

I'm use MS access *.MDB
Thanks!

@SkeletonGamer
Copy link

Use SELECT TOP 1 * FROM TBWork ORDER BY W_PrgName ASC;

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

No branches or pull requests

3 participants