Guest User

Untitled

a guest
Aug 2nd, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 10.81 KB | None | 0 0
  1. SELECT  `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_cat_id` as 'act_log_head.act_log_cat_id', `master_log_category`.`act_log_cat` as 'master_log_category.act_log_cat', `act_log_head`.`act_date` as 'act_log_head.act_date', `act_log_head`.`expedition_code` as 'act_log_head.expedition_code', `master_expedition`.`expedition_name` as 'master_expedition.expedition_name', `act_log_head`.`vehicle_type_id` as 'act_log_head.vehicle_type_id', `master_vehicle_type`.`vehicle_type` as 'master_vehicle_type.vehicle_type', `act_log_head`.`vehicle_number` as 'act_log_head.vehicle_number', `act_log_head`.`container_number` as 'act_log_head.container_number', `act_log_head`.`name` as 'act_log_head.name', `act_log_head`.`co_driver` as 'act_log_head.co_driver', `act_log_head`.`log_status_id` as 'act_log_head.log_status_id', `master_log_status`.`log_status` as 'master_log_status.log_status' FROM  `act_log_head` LEFT JOIN `master_vehicle_type` ON `master_vehicle_type`.`vehicle_type_id` = `act_log_head`.`vehicle_type_id`  LEFT JOIN `master_expedition` ON `master_expedition`.`expedition_code` = `act_log_head`.`expedition_code`  LEFT JOIN `master_log_category` ON `master_log_category`.`act_log_cat_id` = `act_log_head`.`act_log_cat_id`  LEFT JOIN `master_log_status` ON `master_log_status`.`log_status_id` = `act_log_head`.`log_status_id` WHERE `act_log_head`.`log_status_id` <> :where_0
  2. Array
  3. (
  4.     [0] => Array
  5.         (
  6.             [name] => :where_0
  7.             [value] => 6
  8.             [type] =>
  9.         )
  10.  
  11. )
  12.  
  13. SELECT DISTINCT  `act_log_cat_id` as 'act_log_cat_id', `act_log_cat` as 'act_log_cat' FROM  `master_log_category` WHERE (`act_log_type` = :where_1 )
  14. Array
  15. (
  16.     [0] => Array
  17.         (
  18.             [name] => :where_1
  19.             [value] => WH
  20.             [type] =>
  21.         )
  22.  
  23. )
  24.  
  25. SELECT DISTINCT  `expedition_code` as 'expedition_code', `expedition_name` as 'expedition_name' FROM  `master_expedition`
  26. Array
  27. (
  28. )
  29.  
  30. SELECT DISTINCT  `vehicle_type_id` as 'vehicle_type_id', `vehicle_type` as 'vehicle_type' FROM  `master_vehicle_type`
  31. Array
  32. (
  33. )
  34.  
  35. SELECT DISTINCT  `log_status_id` as 'log_status_id', `log_status` as 'log_status' FROM  `master_log_status`
  36. Array
  37. (
  38. )
  39.  
  40. SELECT  act_log_head.act_log_id as dteditor_pkey, master_customer.customer_code as customer_code, master_customer.customer_name as customer_name FROM  act_log_head as act_log_head  JOIN `link_log_customer` ON `act_log_head`.`act_log_id` = `link_log_customer`.`act_log_id`   JOIN `master_customer` ON `master_customer`.`customer_code` = `link_log_customer`.`customer_code`
  41. Array
  42. (
  43. )
  44.  
  45. SELECT DISTINCT  `customer_code` as 'customer_code', `customer_name` as 'customer_name' FROM  `master_customer`
  46. Array
  47. (
  48. )
  49.  
  50. INSERT INTO  `act_log_head`  ( `act_log_id`, `act_log_cat_id`, `act_date`, `expedition_code`, `vehicle_type_id`, `vehicle_number`, `container_number`, `name`, `co_driver`, `log_status_id` ) VALUES (  :act_log_id,  :act_log_cat_id,  :act_date,  :expedition_code,  :vehicle_type_id,  :vehicle_number,  :container_number,  :name,  :co_driver,  :log_status_id )
  51. Array
  52. (
  53.     [0] => Array
  54.         (
  55.             [name] => :act_log_id
  56.             [value] =>
  57.             [type] =>
  58.         )
  59.  
  60.     [1] => Array
  61.         (
  62.             [name] => :act_log_cat_id
  63.             [value] => 3
  64.             [type] =>
  65.         )
  66.  
  67.     [2] => Array
  68.         (
  69.             [name] => :act_date
  70.             [value] => 2016-08-03
  71.             [type] =>
  72.         )
  73.  
  74.     [3] => Array
  75.         (
  76.             [name] => :expedition_code
  77.             [value] => TOP1
  78.             [type] =>
  79.         )
  80.  
  81.     [4] => Array
  82.         (
  83.             [name] => :vehicle_type_id
  84.             [value] => 2
  85.             [type] =>
  86.         )
  87.  
  88.     [5] => Array
  89.         (
  90.             [name] => :vehicle_number
  91.             [value] =>
  92.             [type] =>
  93.         )
  94.  
  95.     [6] => Array
  96.         (
  97.             [name] => :container_number
  98.             [value] =>
  99.             [type] =>
  100.         )
  101.  
  102.     [7] => Array
  103.         (
  104.             [name] => :name
  105.             [value] =>
  106.             [type] =>
  107.         )
  108.  
  109.     [8] => Array
  110.         (
  111.             [name] => :co_driver
  112.             [value] =>
  113.             [type] =>
  114.         )
  115.  
  116.     [9] => Array
  117.         (
  118.             [name] => :log_status_id
  119.             [value] => 11
  120.             [type] =>
  121.         )
  122.  
  123. )
  124.  
  125. INSERT INTO  `link_log_customer`  ( `act_log_id`, `customer_code` ) VALUES (  :act_log_id,  :customer_code )
  126. Array
  127. (
  128.     [0] => Array
  129.         (
  130.             [name] => :act_log_id
  131.             [value] =>
  132.             [type] =>
  133.         )
  134.  
  135.     [1] => Array
  136.         (
  137.             [name] => :customer_code
  138.             [value] => 2
  139.             [type] =>
  140.         )
  141.  
  142. )
  143.  
  144. INSERT INTO  `link_log_customer`  ( `act_log_id`, `customer_code` ) VALUES (  :act_log_id,  :customer_code )
  145. Array
  146. (
  147.     [0] => Array
  148.         (
  149.             [name] => :act_log_id
  150.             [value] =>
  151.             [type] =>
  152.         )
  153.  
  154.     [1] => Array
  155.         (
  156.             [name] => :customer_code
  157.             [value] => 3
  158.             [type] =>
  159.         )
  160.  
  161. )
  162.  
  163. SELECT  `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_cat_id` as 'act_log_head.act_log_cat_id', `master_log_category`.`act_log_cat` as 'master_log_category.act_log_cat', `act_log_head`.`act_date` as 'act_log_head.act_date', `act_log_head`.`expedition_code` as 'act_log_head.expedition_code', `master_expedition`.`expedition_name` as 'master_expedition.expedition_name', `act_log_head`.`vehicle_type_id` as 'act_log_head.vehicle_type_id', `master_vehicle_type`.`vehicle_type` as 'master_vehicle_type.vehicle_type', `act_log_head`.`vehicle_number` as 'act_log_head.vehicle_number', `act_log_head`.`container_number` as 'act_log_head.container_number', `act_log_head`.`name` as 'act_log_head.name', `act_log_head`.`co_driver` as 'act_log_head.co_driver', `act_log_head`.`log_status_id` as 'act_log_head.log_status_id', `master_log_status`.`log_status` as 'master_log_status.log_status' FROM  `act_log_head` LEFT JOIN `master_vehicle_type` ON `master_vehicle_type`.`vehicle_type_id` = `act_log_head`.`vehicle_type_id`  LEFT JOIN `master_expedition` ON `master_expedition`.`expedition_code` = `act_log_head`.`expedition_code`  LEFT JOIN `master_log_category` ON `master_log_category`.`act_log_cat_id` = `act_log_head`.`act_log_cat_id`  LEFT JOIN `master_log_status` ON `master_log_status`.`log_status_id` = `act_log_head`.`log_status_id` WHERE `act_log_head`.`log_status_id` <> :where_0 AND `act_log_head`.`act_log_id` = :where_1
  164. Array
  165. (
  166.     [0] => Array
  167.         (
  168.             [name] => :where_0
  169.             [value] => 6
  170.             [type] =>
  171.         )
  172.  
  173.     [1] => Array
  174.         (
  175.             [name] => :where_1
  176.             [value] =>
  177.             [type] =>
  178.         )
  179.  
  180. )
  181.  
  182. SELECT DISTINCT  `act_log_cat_id` as 'act_log_cat_id', `act_log_cat` as 'act_log_cat' FROM  `master_log_category` WHERE (`act_log_type` = :where_1 )
  183. Array
  184. (
  185.     [0] => Array
  186.         (
  187.             [name] => :where_1
  188.             [value] => WH
  189.             [type] =>
  190.         )
  191.  
  192. )
  193.  
  194. SELECT DISTINCT  `expedition_code` as 'expedition_code', `expedition_name` as 'expedition_name' FROM  `master_expedition`
  195. Array
  196. (
  197. )
  198.  
  199. SELECT DISTINCT  `vehicle_type_id` as 'vehicle_type_id', `vehicle_type` as 'vehicle_type' FROM  `master_vehicle_type`
  200. Array
  201. (
  202. )
  203.  
  204. SELECT DISTINCT  `log_status_id` as 'log_status_id', `log_status` as 'log_status' FROM  `master_log_status`
  205. Array
  206. (
  207. )
  208.  
  209. SELECT  act_log_head.act_log_id as dteditor_pkey, master_customer.customer_code as customer_code, master_customer.customer_name as customer_name FROM  act_log_head as act_log_head  JOIN `link_log_customer` ON `act_log_head`.`act_log_id` = `link_log_customer`.`act_log_id`   JOIN `master_customer` ON `master_customer`.`customer_code` = `link_log_customer`.`customer_code`
  210. Array
  211. (
  212. )
  213.  
  214. SELECT DISTINCT  `customer_code` as 'customer_code', `customer_name` as 'customer_name' FROM  `master_customer`
  215. Array
  216. (
  217. )
  218.  
  219. SELECT  `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_id` as 'act_log_head.act_log_id', `act_log_head`.`act_log_cat_id` as 'act_log_head.act_log_cat_id', `master_log_category`.`act_log_cat` as 'master_log_category.act_log_cat', `act_log_head`.`act_date` as 'act_log_head.act_date', `act_log_head`.`expedition_code` as 'act_log_head.expedition_code', `master_expedition`.`expedition_name` as 'master_expedition.expedition_name', `act_log_head`.`vehicle_type_id` as 'act_log_head.vehicle_type_id', `master_vehicle_type`.`vehicle_type` as 'master_vehicle_type.vehicle_type', `act_log_head`.`vehicle_number` as 'act_log_head.vehicle_number', `act_log_head`.`container_number` as 'act_log_head.container_number', `act_log_head`.`name` as 'act_log_head.name', `act_log_head`.`co_driver` as 'act_log_head.co_driver', `act_log_head`.`log_status_id` as 'act_log_head.log_status_id', `master_log_status`.`log_status` as 'master_log_status.log_status' FROM  `act_log_head` LEFT JOIN `master_vehicle_type` ON `master_vehicle_type`.`vehicle_type_id` = `act_log_head`.`vehicle_type_id`  LEFT JOIN `master_expedition` ON `master_expedition`.`expedition_code` = `act_log_head`.`expedition_code`  LEFT JOIN `master_log_category` ON `master_log_category`.`act_log_cat_id` = `act_log_head`.`act_log_cat_id`  LEFT JOIN `master_log_status` ON `master_log_status`.`log_status_id` = `act_log_head`.`log_status_id` WHERE `act_log_head`.`log_status_id` <> :where_0
  220. Array
  221. (
  222.     [0] => Array
  223.         (
  224.             [name] => :where_0
  225.             [value] => 6
  226.             [type] =>
  227.         )
  228.  
  229. )
  230.  
  231. SELECT DISTINCT  `act_log_cat_id` as 'act_log_cat_id', `act_log_cat` as 'act_log_cat' FROM  `master_log_category` WHERE (`act_log_type` = :where_1 )
  232. Array
  233. (
  234.     [0] => Array
  235.         (
  236.             [name] => :where_1
  237.             [value] => WH
  238.             [type] =>
  239.         )
  240.  
  241. )
  242.  
  243. SELECT DISTINCT  `expedition_code` as 'expedition_code', `expedition_name` as 'expedition_name' FROM  `master_expedition`
  244. Array
  245. (
  246. )
  247.  
  248. SELECT DISTINCT  `vehicle_type_id` as 'vehicle_type_id', `vehicle_type` as 'vehicle_type' FROM  `master_vehicle_type`
  249. Array
  250. (
  251. )
  252.  
  253. SELECT DISTINCT  `log_status_id` as 'log_status_id', `log_status` as 'log_status' FROM  `master_log_status`
  254. Array
  255. (
  256. )
  257.  
  258. SELECT  act_log_head.act_log_id as dteditor_pkey, master_customer.customer_code as customer_code, master_customer.customer_name as customer_name FROM  act_log_head as act_log_head  JOIN `link_log_customer` ON `act_log_head`.`act_log_id` = `link_log_customer`.`act_log_id`   JOIN `master_customer` ON `master_customer`.`customer_code` = `link_log_customer`.`customer_code`
  259. Array
  260. (
  261. )
  262.  
  263. SELECT DISTINCT  `customer_code` as 'customer_code', `customer_name` as 'customer_name' FROM  `master_customer`
  264. Array
  265. (
  266. )
Add Comment
Please, Sign In to add comment