나는 내 코드에서 상수를 사용할 특정 문자열과 bean을 사용하여 html에서 얻은 입력 문자열을 비교하고 싶습니다. 입력 문자열이 지정된 문자열과 같으면 해당 사용자를 데이터베이스에서 관리자로 저장하고 싶습니다. 데이터베이스 테이블에서 감사합니다.
private final String User_role ="admin";
if(User_role.eguals(UserRole.getUser())){
PreparedStatement st = session.connection().prepareStatement("{update tblUser user set user.user_role = ? where (Condition)}");
st.setString(1,User_role );
st.execute();
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다