Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I am trying to execute update query ("UPDATE HEADER SET CHECK='"+HeaderTotal+"',CHECKNO='"+CheckNo.trim()+"' WHERE ORDER_NO='"+OrdNum+"'")) and i am getting this message com.ianywhere.ultralitejni12.implementation.JniException: UltraLiteJ Error[-131]: Syntax error near 'CHECK' %2

Am i doing something wrong? Is there any mistake in query?

asked 29 Feb '12, 16:21

TEJ's gravatar image

TEJ
31455
accept rate: 0%


CHECK is a reserved word / keyword. Use "check" or [check].

permanent link

answered 29 Feb '12, 17:25

John%20Smirnios's gravatar image

John Smirnios
12.0k396166
accept rate: 37%

1

In UltraLite, "check" is good, but [check] is not recognized.

(29 Feb '12, 18:51) Tom Slee

FWIW, it's well documented here...

(01 Mar '12, 03:27) Volker Barth
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×79

question asked: 29 Feb '12, 16:21

question was seen: 1,461 times

last updated: 01 Mar '12, 03:27