Forum Stats

  • 3,875,243 Users
  • 2,266,899 Discussions
  • 7,912,123 Comments

Discussions

A doubt in JDBC Control

661837
661837 Member Posts: 49
edited Nov 12, 2008 4:51AM in WebLogic Portal
Dear All,

In JDBC Conntrol I have to create a method to find some rows based on one where condition.
I am using oracle 10g as database.

My query is

SELECT EMPLOYEE_NAME FROM EMPLOYEE WHERE EMPLOYEE_ID IN (1,2,3,4);

In program the employee ids for where condition will come as int array

How I write a query in annotation for achieving this.

My method signature will be

String[] findEmployees(int[] ids);

Thanks in advance
R

Best Answer

Answers

This discussion has been closed.