数据都是如下的Sql语句,
insert into HC_ENV_REALTIMEDATA values('0c6aab95-c7ea-45c3-8f64-614cff0f1197','deaf2b93-e08e-429a-8530-f726450c7d92',1,27.30,To_Date('2015/10/19 17:39:41','YYYY-MM-DD HH24:MI:SS'),1)
insert into HC_ENV_ALARMDATA values('cfbb2806-5dc2-49dd-ab4d-49678ed386ed',2,'0c6aab95-c7ea-45c3-8f64-614cff0f1197',To_Date('2015/10/19','YYYY-MM-DD'),'','','','',0)
insert into HC_ENV_REALTIMEDATA values('31d144a9-dbf7-47f6-83a8-6047f4aaffcc','e0ca3d2b-d922-4085-b5cc-120559f5f435',2,39.70,To_Date('2015/10/19 17:39:41','YYYY-MM-DD HH24:MI:SS'),0)
insert into HC_ENV_REALTIMEDATA values('29965d0a-7a15-41bc-8bb2-ee18f4fb7ed2','04aede3a-b1c5-4f51-8a86-ff5072c787e3',4,0.00,To_Date('2015/10/19 17:39:40','YYYY-MM-DD HH24:MI:SS'),0)
insert into HC_ENV_REALTIMEDATA values('7a918d1d-54a8-4532-98dd-30ff143388a5','02a992f9-7658-470e-81ad-9225497b3d8c',3,82.10,To_Date('2015/10/19 17:39:40','YYYY-MM-DD HH24:MI:SS'),0)
insert into HC_ENV_REALTIMEDATA values('227d678d-6f3e-437a-ac1d-db9b50b7349f','95f7656e-ff40-49da-82bd-c793652ce6f7',1,27.80,To_Date('2015/10/19 17:39:40','YYYY-MM-DD HH24:MI:SS'),1)
insert into HC_ENV_ALARMDATA values('30bdf3c3-f918-49b3-a57c-0c75550d2cd7',2,'227d678d-6f3e-437a-ac1d-db9b50b7349f',To_Date('2015/10/19','YYYY-MM-DD'),'','','','',0)
insert into HC_ENV_REALTIMEDATA values('e7aa21ad-a173-400a-9b82-db0a3a904f1f','94e6c98f-104b-4bc9-8e57-10fbe18270a3',2,39.90,To_Date('2015/10/19 17:39:40','YYYY-MM-DD HH24:MI:SS'),0)
但是写到文件之后多出来一些数据:
'),1),请问是怎,怎么回事????
注:写入时已经刷新writer。
你可以先拼接为一个string,然后再一次写入文件看看。
请提供写入部分的代码