xoae1_id = zamieniać (Request.Form ("MM_recordId")," '"," '' ")
sConnString = MM_conn_STRING
Ustalony objConn = Server.CreateObject ("ADODB.Connection")
objConn.Open (sConnString)
sSQL = "(WYBRANY username JAKO xusername, patient_id_oae1 JAKO xpatient_id_oae1, specify1 JAKO xspecify1, oae1_grade JAKO xoae1_grade OD tbl_oae_1 DOKĄD oae1_id = "" & xoae1_id & "" "
response.write sSQL
Set rs=objConn.execute (sSQL)
jeśli nie rs.eof wtedy
sSQL1 = "WSZYWKA W tbl_oae_1_log (username, patient_id_oae1, specify1, oae1_grade) WARTOŚĆ (CONCAT ("" & zamieniać (rs ("xusername"),"" "," '' ") &" "," DELETED'), CONCAT (""& zamieniać (rs ("xpatient_id_oae1"),"" "," '' ") &" "," DELETED'), CONCAT (""& zamieniać (rs ("xspecify1"),"" "," '' ") &" "," DELETED'), CONCAT (""& zamieniać (rs ("xoae1_grade"),"" ","'' ") &" "," DELETED')) "
response.write sSQL1
objConn.execute (sSQL1)
sSQL2 = "DELEATUR OD tbl_oae_1 DOKĄD oae1_id = "" & xoae1_id & "" "
response.write sSQL2
objConn.execute (sSQL2)
kończyć jeżeli
Jeżeli err.number=0 Wtedy
response.write "the dane kasować pomyślnie."
Kończyć Jeżeli
objConn.Close
Ustawiać objConn = nic
|