Advertisement
Guest User

Untitled

a guest
Aug 4th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 8.05 KB | None | 0 0
  1. 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 )
  2. Array
  3. (
  4.     [0] => Array
  5.         (
  6.             [name] => :act_log_id
  7.             [value] =>
  8.             [type] =>
  9.         )
  10.  
  11.     [1] => Array
  12.         (
  13.             [name] => :act_log_cat_id
  14.             [value] => 2
  15.             [type] =>
  16.         )
  17.  
  18.     [2] => Array
  19.         (
  20.             [name] => :act_date
  21.             [value] => 2016-08-05
  22.             [type] =>
  23.         )
  24.  
  25.     [3] => Array
  26.         (
  27.             [name] => :expedition_code
  28.             [value] => PDE
  29.             [type] =>
  30.         )
  31.  
  32.     [4] => Array
  33.         (
  34.             [name] => :vehicle_type_id
  35.             [value] => 8
  36.             [type] =>
  37.         )
  38.  
  39.     [5] => Array
  40.         (
  41.             [name] => :vehicle_number
  42.             [value] =>
  43.             [type] =>
  44.         )
  45.  
  46.     [6] => Array
  47.         (
  48.             [name] => :container_number
  49.             [value] =>
  50.             [type] =>
  51.         )
  52.  
  53.     [7] => Array
  54.         (
  55.             [name] => :name
  56.             [value] =>
  57.             [type] =>
  58.         )
  59.  
  60.     [8] => Array
  61.         (
  62.             [name] => :co_driver
  63.             [value] =>
  64.             [type] =>
  65.         )
  66.  
  67.     [9] => Array
  68.         (
  69.             [name] => :log_status_id
  70.             [value] => 11
  71.             [type] =>
  72.         )
  73.  
  74. )
  75.  
  76. INSERT INTO  `link_log_customer`  ( `act_log_id`, `customer_code` ) VALUES (  :act_log_id,  :customer_code )
  77. Array
  78. (
  79.     [0] => Array
  80.         (
  81.             [name] => :act_log_id
  82.             [value] =>
  83.             [type] =>
  84.         )
  85.  
  86.     [1] => Array
  87.         (
  88.             [name] => :customer_code
  89.             [value] => 2
  90.             [type] =>
  91.         )
  92.  
  93. )
  94.  
  95. INSERT INTO  `link_log_customer`  ( `act_log_id`, `customer_code` ) VALUES (  :act_log_id,  :customer_code )
  96. Array
  97. (
  98.     [0] => Array
  99.         (
  100.             [name] => :act_log_id
  101.             [value] =>
  102.             [type] =>
  103.         )
  104.  
  105.     [1] => Array
  106.         (
  107.             [name] => :customer_code
  108.             [value] => 3
  109.             [type] =>
  110.         )
  111.  
  112. )
  113.  
  114. 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
  115. Array
  116. (
  117.     [0] => Array
  118.         (
  119.             [name] => :where_0
  120.             [value] => 6
  121.             [type] =>
  122.         )
  123.  
  124.     [1] => Array
  125.         (
  126.             [name] => :where_1
  127.             [value] =>
  128.             [type] =>
  129.         )
  130.  
  131. )
  132.  
  133. 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 )
  134. Array
  135. (
  136.     [0] => Array
  137.         (
  138.             [name] => :where_1
  139.             [value] => WH
  140.             [type] =>
  141.         )
  142.  
  143. )
  144.  
  145. SELECT DISTINCT  `expedition_code` as 'expedition_code', `expedition_name` as 'expedition_name' FROM  `master_expedition`
  146. Array
  147. (
  148. )
  149.  
  150. SELECT DISTINCT  `vehicle_type_id` as 'vehicle_type_id', `vehicle_type` as 'vehicle_type' FROM  `master_vehicle_type`
  151. Array
  152. (
  153. )
  154.  
  155. SELECT DISTINCT  `log_status_id` as 'log_status_id', `log_status` as 'log_status' FROM  `master_log_status`
  156. Array
  157. (
  158. )
  159.  
  160. 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`
  161. Array
  162. (
  163. )
  164.  
  165. SELECT DISTINCT  `customer_code` as 'customer_code', `customer_name` as 'customer_name' FROM  `master_customer`
  166. Array
  167. (
  168. )
  169.  
  170. 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
  171. Array
  172. (
  173.     [0] => Array
  174.         (
  175.             [name] => :where_0
  176.             [value] => 6
  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. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement