Interface QueryBuilder

    • Method Detail

      • withSQL

        @Deprecated
        QueryAction withSQL​(@NotNull
                            @NotNull java.lang.String sql)
        Deprecated.
        存在SQL注入风险,建议使用 withPreparedSQL(String)
        通过一条 SQL语句创建查询。 该方法使用 Statement 实现,请注意SQL注入风险!
        Parameters:
        sql - SQL语句
        Returns:
        QueryAction
      • withPreparedSQL

        PreparedQueryAction withPreparedSQL​(@NotNull
                                            @NotNull java.lang.String sql)
        通过一条 SQL语句创建预查询
        Parameters:
        sql - SQL语句
        Returns:
        PreparedQueryAction