当前位置: 首页>>代码示例>>PHP>>正文


PHP DBUtil::getLastInsertedIdOfPrepatedQuery方法代码示例

本文整理汇总了PHP中DBUtil::getLastInsertedIdOfPrepatedQuery方法的典型用法代码示例。如果您正苦于以下问题:PHP DBUtil::getLastInsertedIdOfPrepatedQuery方法的具体用法?PHP DBUtil::getLastInsertedIdOfPrepatedQuery怎么用?PHP DBUtil::getLastInsertedIdOfPrepatedQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DBUtil的用法示例。


在下文中一共展示了DBUtil::getLastInsertedIdOfPrepatedQuery方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: putProperty

 public static function putProperty($key, $value)
 {
     $cnt = self::getCountPropertyValue($key);
     if (0 == cnt) {
         $query = "UPDATE `sys_properties` SET `value`=? WHERE `name`=?";
     } else {
         $query = "INSERT INTO `sys_properties` (`value`, `name`) VALUES (?, ?)";
     }
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "ss", $value, $key);
 }
开发者ID:evg299,项目名称:s4u,代码行数:10,代码来源:SysPropertiesUtil.php

示例2: deleteImgAlbumByID

 public static function deleteImgAlbumByID($imgAlbumID, $withPictures)
 {
     $query = "DELETE FROM `img_album` WHERE `id` = ?";
     if ($withPictures) {
         $pict_query = "DELETE FROM `img_picture` WHERE `album_id` = ?";
     } else {
         $pict_query = "UPDATE `img_picture` SET `album_id` = NULL WHERE `album_id` = ?";
     }
     DBUtil::getLastInsertedIdOfPrepatedQuery($pict_query, "i", $imgAlbumID);
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $imgAlbumID);
 }
开发者ID:evg299,项目名称:s4u,代码行数:11,代码来源:ImgAlbumUtil.php

示例3: deleteSysStaticPageById

 public static function deleteSysStaticPageById($sysStaticPageId)
 {
     $query = "DELETE FROM `sys_static_pages` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $sysStaticPageId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:SysStaticPagesUtil.php

示例4: setSendedOrder

 public static function setSendedOrder($order_id)
 {
     $query = "UPDATE `order` SET `sended`=1  WHERE `id`=?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $order_id);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:OrderUtil.php

示例5: deleteImgBlogArtById

 public static function deleteImgBlogArtById($imgBlogArtId)
 {
     $queryBlock = "DELETE FROM `img_blog_art_block` WHERE  `img_blog_art_id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($queryBlock, "i", $imgBlogArtId);
     $queryArt = "DELETE FROM `img_blog_art` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($queryArt, "i", $imgBlogArtId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:7,代码来源:ImgBlogArtUtil.php

示例6: deleteGDSById

 public static function deleteGDSById($imgGdsId)
 {
     $query = "DELETE FROM `img_gds` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $imgGdsId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:ImgGdsUtil.php

示例7: deleteSysNewsCatById

 public static function deleteSysNewsCatById($sysNewsCatId)
 {
     $query = "DELETE FROM `sys_news_cat` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $sysNewsCatId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:SysNewsCatUtil.php

示例8: deleteImgAddressById

 public static function deleteImgAddressById($imgAddressId)
 {
     $query = "DELETE FROM `img_address` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $imgAddressId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:ImgAddressUtil.php

示例9: deleteImgBlogCatById

 public static function deleteImgBlogCatById($imgBlogCatId)
 {
     $query = "DELETE FROM `img_blog_cat` WHERE  `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $imgBlogCatId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:ImgBlogCatUtil.php

示例10: deleteImgPictureById

 public static function deleteImgPictureById($imgPictureId)
 {
     $query = "DELETE FROM `img_picture` WHERE `id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $imgPictureId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:ImgPictureUtil.php

示例11: insertOrderGds

 public static function insertOrderGds($order_gds)
 {
     $query = "INSERT INTO `order_gds` (`order_id`, `img_gds_id`, `count_gds`) VALUES (?, ?, ?)";
     return DBUtil::getLastInsertedIdOfPrepatedQuery($query, "iii", $order_gds['order_id'], $order_gds['img_gds_id'], $order_gds['count_gds']);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:OrderGdsUtil.php

示例12: deleteSysNewsArtBlocksByNewsArtId

 public static function deleteSysNewsArtBlocksByNewsArtId($sysNewsArtId)
 {
     $query = "DELETE FROM `sys_news_art_block` WHERE  `sys_news_art_id` = ?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "i", $sysNewsArtId);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:SysNewsArtBlockUtil.php

示例13: updateOrderAccountRelation

 public static function updateOrderAccountRelation($orderID, $accountID, $sended)
 {
     $query = "UPDATE `order_account_sended` SET `sended`=?  WHERE `order_id`=? AND `img_account_id`=?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "iii", $sended, $orderID, $accountID);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:OrderAccountSendedUtil.php

示例14: updateSysAdmin

 public static function updateSysAdmin($sysAdmin)
 {
     $query = "UPDATE `sys_admins` SET `login`=?, `password`=?, `lastuuid`=? WHERE  `id`=?";
     DBUtil::getLastInsertedIdOfPrepatedQuery($query, "sssi", $sysAdmin['login'], $sysAdmin['password'], $sysAdmin['lastuuid'], $sysAdmin['id']);
 }
开发者ID:evg299,项目名称:s4u,代码行数:5,代码来源:SysAdminsUtil.php


注:本文中的DBUtil::getLastInsertedIdOfPrepatedQuery方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。