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 is multiple columns?

0 Answers  


what is the difference between cluster and non cluster index? : Sql dba

0 Answers  


what is sql server agent? : Sql dba

0 Answers  


What is record variable?

0 Answers  


why should required for Indexed by table in pl/sql

3 Answers  


Explain the PL/SQL compilation process.

3 Answers  


What does truncate mean in sql?

0 Answers  


What is the use of sqldataadapter?

0 Answers  


how to check server status with 'mysqladmin'? : Sql dba

0 Answers  


Why is sql better than hql?

0 Answers  


How can we overcome recursive triggers in SQL?

1 Answers   iFlex,


How to find last day of the month in sql query

4 Answers  


Categories