返回顶部

收藏

JDBC Annotations (@Update) 示例

更多

UserQueries.java

import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
public interface UserQueries extends BaseQuery {

    // Delete user
    @Update ("DELETE Users WHERE firstName={firstName}" +
             "AND lastName={lastName}")
    int deleteUser (String firstName, String lastName);
}

标签:JDBC,Annotation

收藏

0人收藏

支持

0

反对

0

发表评论