260525_01_ENH: 조사원 DB에서 삭제하는 기능 추가

This commit is contained in:
2026-05-25 14:50:17 +09:00
parent dbb4f97deb
commit 899ebc3f2b
2 changed files with 68 additions and 13 deletions

View File

@@ -75,6 +75,20 @@ If gubun = "rej" Then
flag = ExecuteSQL(SQL)
End If
If gubun = "db-delete" Then
SQL = ""
SQL = SQL&" insert into R_info_del ([id],[r_name],[r_phone],[r_pass],[r_gender],[r_birth],[r_sd],[r_sgg],[r_emd],[r_job],[r_univ],[r_year],[r_position],[r_area],[r_district],[r_car],[r_ex],[r_stay],[r_covid],[r_agree1],[r_agree2],[r_edu],[r_bank],[r_account],[r_jumin],[r_check],[Udate],[Regdate],[Flag],[chk],[is_reg_admin]) "&VbcRlf
SQL = SQL&" select [id],[r_name],[r_phone],[r_pass],[r_gender],[r_birth],[r_sd],[r_sgg],[r_emd],[r_job],[r_univ],[r_year],[r_position],[r_area],[r_district],[r_car],[r_ex],[r_stay],[r_covid],[r_agree1],[r_agree2],[r_edu],[r_bank],[r_account],[r_jumin],[r_check],[Udate],[Regdate],[Flag],[chk],[is_reg_admin] "&VbcRlf
SQL = SQL&" from R_info where r_name = '"&r_name&"' and r_phone = dbo.base64_encode('"&r_phone&"') "&VbcRlf
flag = ExecuteSQL(SQL)
If flag = True Then
SQL = ""
SQL = SQL&" delete from R_info where r_name = '"&r_name&"' and r_phone = dbo.base64_encode('"&r_phone&"') "&VbcRlf
flag = ExecuteSQL(SQL)
End IF
End If
if flag = True Then
response.write "1"
End If