cancel
Showing results for 
Search instead for 
Did you mean: 

Error executing query

0 Kudos
1,202

Hi ,

I'm trying to run that query, but Im getting bellow error.

SELECT GroupID, Label, Comment, Provider FROM dbo.mxdata_uggroups

table structure: CREATE TABLE [dbo].[mxdata_uggroups] ([GroupID] INTEGER DEFAULT AUTOINCREMENT NOT NULL,[Label] varchar(300) NULL,[Comment] TEXT NULL, [Provider] VARCHAR (10) not null, PRIMARY KEY ([GroupID]));


**Error executing query:

SQL Error State:42000, Native Error Code: FFFFFF7D, ODBC Error: [Sybase][ODBC Driver][SQL Anywhere]Syntax error near 'Comment' on line 4**

0 Kudos

Sqlanyhere 16

VolkerBarth
Contributor
0 Kudos

Seems quite similar/related to this question...

Accepted Solutions (1)

Accepted Solutions (1)

MarkCulp
Participant

"Comment" is a reserved word. You need to quote it when you use it in your query. See the documentation on reserved words for more information.

0 Kudos

Solved. Thank you Mark!!

Answers (0)