Swetha
Swetha

Reputation: 1

How to fetch the value of a column in a table present sql developer through java script

Need to fetch a value from a column in a table present in SQL developer through Javascript

The table [AAAA] consist of four columns A , B , C and D. How should i write the javascript to fetch the value of a record in column C by searching with a specific record value from column B

select C from AAAA where B = '3'; -- where 3 is a record from column B How to obtain it through javascript

Need to fetch those values through intershop

Upvotes: 0

Views: 76

Answers (2)

Bharat Arya
Bharat Arya

Reputation: 139

for the fetching database, you required server-side interaction.

Upvotes: 0

Sasi Kumar M
Sasi Kumar M

Reputation: 2630

You cannot connect to SQL Developer directly from client side Java Script, but only from server side Java Script, such as Node JS. Write a server side Java Script Code to connect to your database and then create APIs from the same. Retrieve the values by invoking APIs from client side Java Script.

Upvotes: 1

Related Questions