cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC Sender adapter - can VIEW be used in Query statement

Former Member
0 Kudos

Hi,

In JDBC Sender adapter, can we use a VIEW sql query in the "Query SQL Statement" placeholder?

For eg:

CREATE VIEW <view name> as SELECT * from <table name> WHERE <condition>

instead of the usual:

SELECT * from <table name> WHERE <condition>

Thanks,

Vishak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If the view already exists in the Database then we can call that view from here, according to my knowledge we can't create the view from here.

Former Member
0 Kudos

I wanted to populate this view with the SELECT statement and then update the view with the UPDATE statement so that the actual table gets updated. This would avoid problems of more records getting updated than the actual no: of records getting selected when an INSERT step happens in the milli second between the SELECT and UPDATE statements (especially in a heavily overloaded DB).

Former Member
0 Kudos

Hi,

Yes you can populate the view with the SELECT statement and then update the view with the UPDATE statement so that the actual table gets updated in the Database.

Answers (1)

Answers (1)

former_member193376
Active Contributor
0 Kudos

Hi

What exactly is your use of creating a view, if you are going to fetch data from different tables, then you can use the view through stored procedures.

Hope this clears your doubts

Thanks

Saiyog

Former Member
0 Kudos

I am not fetching data from different tables nor do I want to use a stored procedure.

I just wanted to know whether JDBC Sender adapter would allow us to use a CREATE VIEW statement instead of the usual SELECT statement.