how to use comma separated value list in the where clause oracle

Ads
 

how to use comma separated value list in the where clause oracle

Hi,

how to use comma separated value list in the where clause oracle

Thanks

View Answers

October 10, 2017 at 9:51 PM

HI,

Following code will help you:

select * from employee where id in (
   select regexp_substr('1,2,3,4','[^,]+', 1, level) from dual
   connect by regexp_substr('1,2,3,4', '[^,]+', 1, level) is not null 
   );

Thanks


October 10, 2017 at 9:51 PM

HI,

Following code will help you:

select * from employee where id in (
   select regexp_substr('1,2,3,4','[^,]+', 1, level) from dual
   connect by regexp_substr('1,2,3,4', '[^,]+', 1, level) is not null 
   );

Thanks


October 10, 2017 at 9:52 PM

HI,

Following code will help you:

select * from employee where id in (
   select regexp_substr('1,2,3,4','[^,]+', 1, level) from dual
   connect by regexp_substr('1,2,3,4', '[^,]+', 1, level) is not null 
   );

Thanks

Ads









Related Tutorials/Questions & Answers:
how to use comma separated value list in the where clause oracle
how to use comma separated value list in the where clause oracle  Hi, how to use comma separated value list in the where clause oracle Thanks   HI, Following code will help you: select * from employee where id
HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL
HOW CN I USE WHERE AND BETWEEN CLAUSE SIMULTANEOUSLY... IN MYSQL  sir, how can i use WHERE and BETWEEN clause simultaneously..? my tables details... WHERE _exp_date BETWEEN ('2009-07-01' AND '2011-07-30') AND _exp_for_id = 1
Advertisements
JDBC: WHERE Clause Example
JDBC: WHERE Clause Example In this section, we will discuss how to use WHERE...(); } } } Output : Use of WHERE Clause in JDBC... RollNo Name Course.... WHERE Clause : MySql Where Clause is used to write some condition and data
Hibernate WHERE Clause
Hibernate WHERE Clause In this tutorial you will learn how to use HQL where clause. Use of WHERE clause in hibernate is as same as it used in SQL... a simple java file into which we will use HQL where clause for extracting
how to use dropdown list in JSP and display value in same page
how to use dropdown list in JSP and display value in same page  I have a Dropdown list with some values say "A", "B" and "C" When the user selects... in the same page Value selected = C How can we do this in a JSP page
Where clause
Where clause  I have doubt in Where clause .. i got a Employid from...; The WHERE clause is used to filter records.It is used to extract only those..._name(s) FROM table_name WHERE column_name = value; Example: In the given
Where Clause in SQL
The Tutorial illustrate an example from where clause in SQL. In this Tutorial we use... Where Clause in SQL       The Where clause in SQL query is used  with the SELECT keyword
where clause in select statement
where clause in select statement  In Mysql,I write the following query: select * from emp where designation = "MANAGER" But the actual value... nly if the where condition is "manager" and not "MANAGER
SQL Aggregate Functions In Where Clause
specified in the 'Stu_Name'. In order to overcome, we use the WHERE clause... SQL Aggregate Functions In Where Clause       SQL Aggregate Function In Where Clause return
Where clause with query in MySQL
Where clause with query in MySQL  Hi, I want to learn the where... is the various example of where clause: Suppose we have following table: mysql> select... (0.00 sec) Following shows more uses of where clause: mysql> select * from
Php Sql Where
Php Sql Where This example illustrates how to use the WHERE clause in the UPDATE query in PHP. In this example we create a UPDATE query with WHERE clause to update the field emp_name where name is 'amar'. In the figure below the first
PHP SQL Query Where Clause
PHP SQL Query Where Clause       This example illustrates how to create and execute the sql query with where clause. To understand how to display the result returned 
How to use Bean Area in Oracle Forms 9i with Sample code ?
How to use Bean Area in Oracle Forms 9i with Sample code ?  Hi friend.I posted a query,but I didn't get the answer for it.Help me to resolve including a bean area in oracle forms 9i and using it in forms.Thanks in advance.Help me
how to create a bar chart in jsp by fetching value from oracle databse?
how to create a bar chart in jsp by fetching value from oracle databse?  i want to show the population of various states in a bar chart in my jsp page by fetching the data from my oracle table. i am using my eclipse as my IDE
Where can I start learning how to use TensorFlow?
Where can I start learning how to use TensorFlow?  Hi, TensorFlow is becoming programming language of choice among data scientist. I also want to learn TensorFlow. Where can I start learning how to use TensorFlow? Thanks
Where can I start learning how to use TensorFlow?
Where can I start learning how to use TensorFlow?  Hi, I have... trying to find best tutorials of TensorFlow on Internet. Where beginner should start learning TensorFlow? Where can I start learning how to use TensorFlow
SQL Aggregate Functions Where Clause
SQL Aggregate Functions Where Clause       SQL Aggregate Functions Where Clause return you the aggregate sum of the records based on the condition specified in Where Clause condition
how to load value in dropdown list after selecting value from first dropdown list using javascript
how to load value in dropdown list after selecting value from first dropdown list using javascript  how to load value in dropdown list after selecting value from first dropdown list using javascript
PHP WHERE clause example to fetch records from Database Table
different actions in MYSQL Database Tables. PHP WHERE Clause is one of them. We can use the WHERE clause in PHP & MYSQL to  add, edit or delete... the WHERE Clause in PHP. Here is an example of how you can write the WHERE Clause
How to split string in Java using comma?
How to split string in Java using comma?  Hi, Share the example code for splitting the string in Java using comma as separator. Thanks   Hi, You can use the split() function of the String class to split the string
JPA Query with where clause and group by function
JPA Query with where clause and group by function  Any thing wrong in my JPA Query. TypedQuery<RaBdrRating> uQuery = (TypedQuery<...(charge),COUNT(activePackage) FROM User WHERE callType = :callType and startDate
MySQL Case In Where Clause
MySQL Case In Where Clause       This example illustrates how to use case statement where clause...; Output: Using MySQL 'case' and 'where' clause: SELECT daysName
How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE
How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE  How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE, So that We can also
related retrieving value from oracle database
related retrieving value from oracle database  how we get the value from database in the given textbox
related retrieving value from oracle database
related retrieving value from oracle database  how we get the value from database in the given textbox
SQL Aggregate Functions Where Clause
SQL Aggregate Functions Where Clause       SQL Aggregate Functions Where Clause is used... Where Clause. To understand and grasp example we create a table 'Stu
how to use group by in nested query
how to use group by in nested query  Hai, How to use group by clause in nested query select statement in subquery i am having where clause.please help me.thanks in advance
JDBC: LIKE Clause Example
JDBC: LIKE Clause Example In this section, you will learn how to use LIKE... Clause is used for comparing part of string. For pattern matching we use...[] args){ System.out.println("Use of LIKE Clause in JDBC..."); Connection con
How to automatically change the value of the textbox based on the dropdown list?
How to automatically change the value of the textbox based on the dropdown list?  I want to know how to automatically change the value of price...="text" name="cus" required="required" value="" size=20px/></td> <
How to use sum sql query to process the summed data into a list?
How to use sum sql query to process the summed data into a list?  Im get stuck to get sum of data in database. Then i need to list the summed of data... need to sum the father and mother's user income. Then i need to list summed
How to use sum sql query to process the summed data into a list?
How to use sum sql query to process the summed data into a list?  Im get stuck to get sum of data in database. Then i need to list the summed of data... need to sum the father and mother's user income. Then i need to list summed

Ads