i have xml source. xml source having lacks of records. i
want extract/retrive xml source data using sql query.
please tell me how to write query.

Answers were Sorted based on User's Feedback



i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / naren

select e.getclobVal() from table name e;

Is This Answer Correct ?    2 Yes 1 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / jagadeesh

create procedure proc_es
as
begin
declare @hdoc int
DECLARE @xml xml
set @xml=(select *
From openrowset(Bulk'C:\emp18.xml', single_blob) as xmldata)
exec sp_xml_preparedocument @hdoc output,@xml
insert into emp19(emp_id,emp_fname,emp_lname,emp_mail)
select *
from openxml(@hdoc,'/employee/details',3)
with(emp_id int,emp_firstname varchar(50),emp_lastname varchar(50),emp_mailid varchar(50))
exec sp_xml_removedocument @hdoc
end

Is This Answer Correct ?    1 Yes 0 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / yalamanda

select top 100 percent * from table_name..

Is This Answer Correct ?    0 Yes 0 No

i have xml source. xml source having lacks of records. i want extract/retrive xml source data usin..

Answer / mathivanan

select extractvalue(columnname,'/roottag/subtag') from tablename

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What are triggers and its types?

0 Answers  


What are conditional predicates?

0 Answers  


What is data abstraction in sql?

0 Answers  


How to select random rows from a table?

0 Answers  


How to know the last executed procedure?

0 Answers  






What are the sql versions?

0 Answers  


What is primary key and foreign key with example?

0 Answers  


What is the use of index in sql?

0 Answers  


What does pl sql stand for?

0 Answers  


Can we join two tables without common column?

0 Answers  


What are Lexical Parameters.How They are used in Reports 6i

2 Answers   eicc,


Is delete faster than truncate?

0 Answers  


Categories