0

How can user input be taken using Visual Studio Code for an Oracle Database SQL Query?

SELECT LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY > &salary;

This is the SQL query when executed in Visual Studio Code throws the below error.

SQL: SELECT LAST_NAME, SALARY FROM EMPLOYEES WHERE SALARY > &salary
Error: ORA-01008: not all variables bound

But when the same query executed in SQL Plus works correctly without any error.

3
  • See if this helps: stackoverflow.com/questions/7493028/… Commented Aug 24, 2020 at 15:49
  • The problem is with Visual Studio Code, with SQL Plus there is no error. The query is executing without any errors. This is related to the error, not the problem related to the Visual Studio Code. Commented Aug 25, 2020 at 7:21
  • I have never used Visual Studio Code with Oracle SQL. Can just try helping with similar questions on the platform. Here is another link: stackoverflow.com/questions/7493028/…. Commented Aug 27, 2020 at 7:25

1 Answer 1

1

For what it is worth, when this question was posted, SQL*Plus commands were not supported with Oracle Developer Tools for VS Code. As of 19.3.3 (Sept 2020) it is now supported.

https://www.oracle.com/database/technologies/appdev/dotnet/odtvscodesqlplus.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.