131
Views
9
Comments
Error in advanced query SQL1: ORA-00933: SQL command not properly ended
Application Type
Reactive

Database: Oracle

I'm facing a weird issue with the update statement. This statement is working fine in SQL database.


Please give me a solution. 

UserImage.jpg
vikas sharma
Champion

Hi,

What you are trying to do with last line of sql query. First 2 lines are update statement. But didn't getting the purpose of last line.

regards

UserImage.jpg
Kumar Chandrasekaran

That's to test and check the statement.

2024-09-09 08-44-46
BHUPENDRA SINGH

hi,

Please add semicolon ";" after the UPDATE statement and then SELECT statement.

As oracle uses semicolon ";" to identify each statement when multiple statement given.

Please check;

Hope it will help.

UserImage.jpg
Kumar Chandrasekaran

Still it shows the same error. Can you please tell me what could be the issue?

UserImage.jpg
Alexandre Yip

Hi Kumar Chandrasekaran, 

You can separate in two sql advance query, the first one for the update the output should be an integer. 

For the select, just need  the consultantclarificationId as input and use as output the record as you have in the image. 

Hope that it helps you 

UserImage.jpg
Kumar Chandrasekaran

I tried in this way.

UserImage.jpg
Alexandre Yip

Hi Kumar Chandrasekaran, 

Check out here this forge component for samples 

https://www.outsystems.com/forge/component-overview/10200/sql-advanced-query-samples-for-dummies

Hope that it helps you 

2023-07-25 17-04-53
Mohit Sharma

Hi Kumar,

As I can see the error code and error, it is clear that something is wrong with query. Your query looks ok and issue should be with your data. So I would suggest

1. First only try update query and set hard-coded values only. 

2. If it works then test update query with only one at a time input value to identify which data is responsible for error. 

Keep posting here for more help.

Best of luck. 

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi,

Can you share screenprint of the test parameter values?

Regards,

Daniel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.