读取xml文件的方法

1.xml文件【例子】

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<page>
	<database name="CREDIT">
		<table name="lb_t_customter_info">
			<sql id="001">
				select t.*,rowid from customter t where cust_code=(select fk_cust_code from lb_t_into_info where into_app_id='130154740318')
			</sql>
		</table>
		<table name="T_TN_TRANSACTION_RECORD">
			<sql id="002">
				select * from  RECORD a where bus_code = '%s' order  by a.create_time desc
			</sql>
		</table>

	</database>
	<database name="CORE5DB">
		<table name="t_c_at_loaninfo">
			<sql id="003">
				select * from loan t where t.loan_status = '0' and t.contract_no in (select t1.contract_no from paymentw t1 where t1.pay_status not in ('0','1','2,','3')) order by id desc
			</sql>
		</table>


	</database>
</page>

  

猜你喜欢

转载自www.cnblogs.com/bubutianshu/p/12894220.html