java語言基礎

一、String format用法:spa

String query = "FROM Resource WHERE 1=1 %s";
        String condition =  "AND type=1 OR type=2 ";
        String hql = String.format(query, condition);
相關文章
相關標籤/搜索