on 08-24-2015 2:38 PM
Hi,
I am running 'create table..' or 'select * into..' sql queries in sybase.
No matter how much I change the query, I am getting following error always -
SQL Anywhere Error -131: Syntax error near '(end of line)' on line 3
Appreciate your help. Thanks.
Post the code please. Without seeing that it is hard to diagnose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also be careful if you are copying/pasting the script from an editor window on Windows into a dbisql session, etc. I have had issues with hidden/embedded carriage returns (^M).
Even editing the script in dbisql after will still give errors as there is a ^M still there.
I sometimes will run the script through dos2unix anyway and resolve the issue that way.
(I've also seen this issue in a .cfg file copied from Windows where the ^M hidden after the server name caused startup problems until I ran the .cfg through dos2unix).
Chris
you will get this error, if you are either missing closing parenthesis, or quotes or semicolon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.