aasd.sql 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. SELECT id,
  2. excel_file_id AS fileId,
  3. sheet_id AS sheetId,
  4. xm AS personName,
  5. sfzmhm AS personCertNo,
  6. sfzmhm AS personCertName,
  7. xb AS gender,
  8. zzssxq AS addressCity,
  9. zzxq AS addressDetail,
  10. ldmc AS hotelName,
  11. ldxxdz AS hotelAddress,
  12. rzfh AS roomNo,
  13. rzsj AS inDateTime,
  14. tfsj AS outDateTime
  15. FROM gat_lgzs_1683362389912;
  16. SELECT *
  17. FROM ` clue_analysis_jw `.` gat_tzfw_1683362389945 `
  18. LIMIT 0,1000;
  19. SELECT *
  20. FROM ` clue_analysis_jw `.` gat_czrk_1683362389811 `
  21. LIMIT 0,1000;
  22. SELECT id,
  23. excel_file_id AS fileId,
  24. sheet_id AS sheetId,
  25. cjrq as flightDateTime,
  26. ddrq as depDateTime,
  27. hbh as flightNo,
  28. sfzm as origin,
  29. zdzm as destination,
  30. zwh as seatNo,
  31. ch as cabinClass,
  32. zjlx as personCertType,
  33. sfzh as personCertNo,
  34. txrxm as companionName
  35. FROM ` clue_analysis_jw `.` gat_thbfw_1683362389924 `
  36. LIMIT 0,1000;
  37. SELECT id,
  38. excel_file_id AS fileId,
  39. sheet_id AS sheetId,
  40. cc as trainNo,
  41. djsj as depDateTime,
  42. qszm as origin,
  43. zdzm as destination,
  44. cxh as carNo,
  45. zwh as seatNo,
  46. xm as personName,
  47. txrxm as companionName,
  48. zjlx as personCertType,
  49. sfzh as personCertNo
  50. FROM ` clue_analysis_jw `.` gat_thcfw_1683362389934 `
  51. LIMIT 0,1000;
  52. SELECT id,
  53. excel_file_id AS fileId,
  54. sheet_id AS sheetId,
  55. xm as personName,
  56. zjhm as personCertNo,
  57. ch as trainNo,
  58. fz as origin,
  59. dz as destination,
  60. fcrq as depDateTime,
  61. cxh as carNo,
  62. zwh as seatNo,
  63. cpzt as ticketStatus,
  64. tprq as refundDate,
  65. gqrq as changeDate
  66. FROM ` clue_analysis_jw `.` gat_tldp_1683362389863 `
  67. LIMIT 0,1000;
  68. SELECT id,
  69. excel_file_id AS fileId,
  70. sheet_id AS sheetId,
  71. ddcfsj as depDateTime,
  72. ddddsj as arrDateTime,
  73. qfjcdm as depAirport,
  74. ddjcdm as arrAirport,
  75. lkzwm as personName,
  76. lkywx as surname,
  77. lkywm as personNameEn,
  78. zjhm as personCertNo,
  79. hbh as flightNo,
  80. cyhkgsdm as carrier,
  81. jlbh as pnr,
  82. hbh as ticketNo,
  83. pj as fare,
  84. cprq as issueDate,
  85. hdcw as agent,
  86. ph as flightClass,
  87. hdzt as status
  88. FROM ` clue_analysis_jw `.` gat_mhdp_1683362389874 `
  89. LIMIT 0,1000;
  90. SELECT id,
  91. excel_file_id AS fileId,
  92. sheet_id AS sheetId,
  93. hbh as flightNo,
  94. hbhz as flightSuffix,
  95. hkgsdm as carrier,
  96. hbrq as flightDateTime,
  97. lgsj as depDateTime,
  98. jgsj as arrDateTime,
  99. qfgzszdm as depCode,
  100. ddhzszdm as arrCode,
  101. lkx as surname,
  102. lkxm as givenName,
  103. lkzjm as middleName,
  104. lkzwxm as personName,
  105. lkzwxx as personNameCn,
  106. xb as gender,
  107. csrq as birthDate,
  108. csd as birthPlace,
  109. zjhm as personCertNo,
  110. lkzwxx as seatNo
  111. FROM ` clue_analysis_jw `.` gat_mhlg_1683362389899 `
  112. LIMIT 0,1000;
  113. SELECT id,
  114. excel_file_id AS fileId,
  115. sheet_id AS sheetId,
  116. bccx,
  117. bch,
  118. bclx,
  119. ccrxm as personName,
  120. ccrzjlx as personCertType,
  121. cph,
  122. cpjg,
  123. cplx,
  124. cpzt,
  125. fcsj as depDateTime,
  126. gpcgsj as buyDateTime,
  127. jsdxsjhm,
  128. mddmc as destination,
  129. qpsj,
  130. sfczmc as origin,
  131. tpje,
  132. tpsj as refundDateTime,
  133. xsqdbm,
  134. zjhm as personCertNo,
  135. zwh
  136. FROM ` clue_analysis_jw `.` jt_ygpw_1683363125047 `
  137. LIMIT 0,1000;
  138. SELECT id,
  139. excel_file_id AS fileId,
  140. sheet_id AS sheetId,
  141. tzrxm AS togetherName,
  142. tzrsfzh AS togetherCertNo,
  143. tzrzjlx AS togetherCertType,
  144. tzrxb AS togetherGender,
  145. tzrnl AS togetherAge,
  146. tzrmz AS togetherEthnicity,
  147. tzrhjd AS togetherOrigin,
  148. tzrjdmc AS hotelName,
  149. tzrfjh AS roomNo,
  150. tzrrzsj AS inDateTime,
  151. tzrtfsj AS outDateTime,
  152. tzlx AS coType,
  153. tzcs AS stayCount,
  154. bz AS remark,
  155. cxrsfzh AS queryCertNo
  156. FROM gat_tzfw_1683362389945;
  157. truncate hotel_stay_info;
  158. truncate together_live_info;
  159. truncate together_flight_info;
  160. truncate together_train_info;
  161. truncate track_car_ticket_info;
  162. truncate train_ticket_info;
  163. truncate flight_departure_info;
  164. truncate flight_ticket_info;
  165. copy hotel_stay_info from 'C:\Users\cc\Desktop\旅馆住宿.csv';
  166. copy together_live_info from 'C:\Users\cc\Desktop\同住服务.csv';
  167. copy together_flight_info from 'C:\Users\cc\Desktop\gat_thbfw_1683362389924.csv';
  168. copy together_train_info from 'C:\Users\cc\Desktop\gat_thcfw_1683362389934.csv';
  169. copy track_car_ticket_info from 'C:\Users\cc\Desktop\jt_ygpw_1683363125047.csv';
  170. copy train_ticket_info from 'C:\Users\cc\Desktop\gat_tldp_1683362389863.csv';
  171. -- copy flight_departure_info from 'C:\Users\cc\Desktop\gat_mhlg_1683362389899.csv';
  172. copy flight_ticket_info from 'C:\Users\cc\Desktop\gat_mhdp_1683362389874.csv';