<?php

//===GET===
$sql['get_count'] = "
SELECT
   COUNT(jeniskonId) AS total
FROM
   jenis_konstruksi_ref
WHERE
   jeniskonNama LIKE %s
LIMIT 1
   ";   


$sql['get_data']="
SELECT
   jeniskonId AS id,
   jeniskonNama AS nama
FROM
   jenis_konstruksi_ref

WHERE
   jeniskonNama LIKE %s
LIMIT %s, %s

";

$sql['get_data_by_id']="
SELECT
   jeniskonId AS id,
   jeniskonNama AS nama
FROM
   jenis_konstruksi_ref
WHERE
   jeniskonId = %s
LIMIT 1
";
   

//===DO===

$sql['do_add'] = 
   "INSERT INTO `jenis_konstruksi_ref` 
    ( `jeniskonId`, `jeniskonNama`)
   VALUES 
    (  '',  %s)";

$sql['do_delete']="
   DELETE FROM `jenis_konstruksi_ref` 
   WHERE
    `jeniskonId`=%s
";  


$sql['do_update'] = 
   "UPDATE `jenis_konstruksi_ref` SET  
     `jeniskonNama`=%s
    WHERE 
	  `jeniskonId`=%s
";

?>
