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 stored procedures in mysql?

0 Answers  


What is trigger in sql and its types?

0 Answers  


Explain lock escalation? : Transact sql

0 Answers  


What are pl/sql cursor exceptions?

0 Answers  


what is the difference between primary key and unique key? : Sql dba

0 Answers  






what are Dynamic SQL statements?

9 Answers  


Does truncate need commit?

0 Answers  


Why do we need sharding?

0 Answers  


When can we use the where clause and the having clause?

0 Answers  


What is pivot in sql?

0 Answers  


How can you view the errors encountered in a trigger?

0 Answers  


Is sql similar to python?

0 Answers  


Categories