sqlmap-subscription.xml 575 Bytes
<?xml version="1.0" encoding="UTF-8"?>
<sqlMap namespace="subscription">
    <insert id="add">
        INSERT IGNORE INTO `tbl_app_info` (`key`,`secret`,`name`,`scope`,`state`,`create_time`) VALUES (:key,:secret,:name,:scope,:state,:create_time)
    </insert>
    <select id="get">
        SELECT `id`,`key`,`secret`,`name`,`scope`,`state` FROM `tbl_app_info` WHERE `key`=:key
    </select>
    <update id="upd">
        UPDATE `tbl_app_info` SET #STRINGS# WHERE `id`=:id
    </update>
    <select id="getAllApps">
        SELECT * FROM `tbl_app_info`
    </select>
</sqlMap>