Navicat连接IEE数据库导出通话记录数据_CSV格式

Navicat连接IEE数据库导出通话记录数据_CSV格式_第1张图片

select  distinct(t1.cur_subscriber_number), t1.calling_number,t1.called_number,t1.call_start_time from cdl_raw_1x_12501_ztev8_sht_201811 t1 WHERE
(       
		t1.call_start_time >= STR_TO_DATE(
			'2018-11-04 01:00:00',GET_FORMAT(DATETIME, 'ISO')
		)
		
		and
		 t1.call_start_time <= STR_TO_DATE(
			'2018-11-04 23:00:00',GET_FORMAT(DATETIME, 'ISO')
		)
)
into outfile '/home/metarnop/huadan/12501.csv' CHARACTER set 'GB2312' fields terminated by ',' lines terminated by '\r\n';/* 此处代表把查询出来的数据导出到图中红色箭头标识的/home/metarnop/huadan/目录,名称起为12501.csv.

 

你可能感兴趣的:(数据库)