count(a.cdt) over() pagetotalcount cdt,cno,udt,uno,uip now(),#uno#,now(),#uno#,#uip# udt=now(),uno=#uno#,uip=#uip# now() 'np123@!' rno between $pagerange$ rno between $pagerange$ insert into loginlog (logsite,userno, loginstatus, logindata, ) values (#loginsite#,#userno#, #loginstatus#, #logindata#, ) insert into users(usertype,userkind,userid,userpass,username,usernameeng ,gender,email,isacceptemail,mobile,telno ,asno,pasname,depart,ccposition,ccpositionetc,fgnoprofile,ccjobs ,userpno,bankname,bankno ,post,address1,address2,introhtml,status,logintime,send335time,pwcalltime,pwcallno,eastereggkey,eetime,kfcfyear,isassignuser,edus ,isacceptmobile,uduty,slevel,jointype,birthday,snsid,di,ci,vssn,ischkatt,authplatform,) values (#usertype#,#userkind#,#userid#,#userpass#,#username#,#usernameeng# ,gender,HEX(AES_ENCRYPT(#email#, )),#isacceptemail#,HEX(AES_ENCRYPT(#mobile#, )),HEX(AES_ENCRYPT(#telno#, )) ,#asno#,#pasname#,#depart#,#ccposition#,#ccpositionetc#,#fgnoprofile#,#ccjobs# ,HEX(AES_ENCRYPT(#userpno#, )),#bankname#,HEX(AES_ENCRYPT(#bankno#, )) ,#post#,#address1#,#address2#,#introhtml#,#status#,,null,null,null,null,null,#kfcfyear#,#isassignuser#,#edus# ,#isacceptmobile#,#uduty#,#slevel#,#jointype#,HEX(AES_ENCRYPT(#birthday#, )),#snsid#,#di#,#ci#,#vssn#,#ischkatt#,#authplatform#,); SELECT LAST_INSERT_ID() update users set ,usertype=#usertype# ,userkind =#userkind# ,userpass =#userpass# ,username =case when #username# is not null then #username# else username end ,usernameeng =case when #usernameeng# is not null then #usernameeng# else username end ,gender =#gender# ,email =case when #email# is null and #usertype# > 80 then null when #email# is not null then HEX(AES_ENCRYPT(#email#, )) else email end ,isacceptemail =case when #isacceptemail# is not null then #isacceptemail# else isacceptemail end ,mobile =HEX(AES_ENCRYPT(#mobile#, )) ,telno =HEX(AES_ENCRYPT(#telno#, )) ,asno =#asno# ,pasname =#pasname# ,depart =#depart# ,ccposition =#ccposition# ,ccpositionetc =#ccpositionetc# ,fgnoprofile =#fgnoprofile# ,ccjobs =case when #ccjobs# is not null then #ccjobs# else ccjobs end ,userpno =case when #userpno# is not null then HEX(AES_ENCRYPT(#userpno#, )) else null end ,bankname =case when #bankname# is not null then #bankname# else bankname end ,bankno =case when #bankno# is not null then HEX(AES_ENCRYPT(#bankno#, )) else bankno end ,post =case when #post# is not null then #post# else post end ,address1 =case when #address1# is not null then #address1# else address1 end ,address2 =case when #address2# is not null then #address2# else address2 end ,introhtml =case when #introhtml# is not null then #introhtml# else introhtml end ,isacceptmobile = #isacceptmobile# ,uduty = #uduty# ,slevel = #slevel# ,jointype =case when #jointype# is not null then #jointype# else jointype end ,isassignuser = #isassignuser# ,birthday = case when #birthday# is not null then HEX(AES_ENCRYPT(#birthday#, )) else birthday end ,kfcfyear =case when #kfcfyear# is not null then #kfcfyear# else kfcfyear end ,isassignuser =#isassignuser#,kfcfyear =#kfcfyear#,edus=#edus# ,status =case when #status# > 0 then #status# else status end ,ischkatt = #ischkatt# ,authplatform =case when #authplatform# > 0 then #authplatform# else authplatform end ,di =case when #di# is not null then #di# else di end ,ci =case when #ci# is not null then #ci# else ci end ,vssn =case when #vssn# is not null then #vssn# else vssn end where userno=#userno# update users set ,username='탈퇴회원',usernameeng=null,email=null,mobile=null,telno=null,userpno=null,bankno=null,post=null,address1=null,address2=null,birthday=null,di=null,ci=null,vssn=null,authplatform=0,status=99 where userno=#userno# userno in ($usernos$) update users set ,status=8 where userno in ($usernos$) insert into users (usertype,jointype,userid,userpass,username,gender,email,isacceptemail,isacceptmobile,isassignuser,mobile,telno,asno,depart,ccposition,ccjobs,uduty,status,logintime,) select 1,0 ,#Us[].userid# ,#Us[].userpass# ,#Us[].username# ,null ,HEX(AES_ENCRYPT(#Us[].email#, )) ,1 ,1 ,1 ,HEX(AES_ENCRYPT(#Us[].mobile#, )) ,HEX(AES_ENCRYPT(#Us[].telno#, )) ,#Us[].asno# ,#Us[].depart# ,null ,null ,#Us[].uduty# ,1,now(), now(), #uno#, now(), #uno#, #uip# from (select 1 col1) a ; update users set loginkey=#loginkey#,logintime =,send335time = null where userno=#userno# update users set loginkey=#loginkey#,logintime =,send335time = null where userno=#userno#; insert into loginlog (logsite,userno, loginstatus, logindata, ) values (#loginsite#,#userno#, #loginstatus#, #logindata#, ) insert into assign (ascode,isjoin,joinyear,joinprice,asname,ceoname,brno,grno,btype,bkind,salesamount,homeurl,mcount,aday,astype,asctg,askey,post,address1,address2,fgnobno,fgnobank,joindate,exitdate,status,issite,subdomain,sitename,sitelogo,sitefooter,ismain,isdel, eino,mname,mphone,taxemail,) values (#ascode#,#isjoin#,#joinyear#,#joinprice#,#asname#,#ceoname#,#brno#,#grno#,#btype#,#bkind#,#salesamount#,#homeurl#,#mcount#,#aday#,#astype#,#asctg#,#askey#,#post#,#address1#,#address2#,#fgnobno#,#fgnobank#,#joindate#,#exitdate#,#status#,0,null,null,null,null,0,0, #eino#,#mname# ,HEX(AES_ENCRYPT(#mphone#, )) ,HEX(AES_ENCRYPT(#taxemail#, )) ,); SELECT LAST_INSERT_ID() update assign set ,ascode=#ascode#,isjoin=#isjoin#,joinyear=#joinyear#,joinprice=#joinprice#,astype=#astype#,asctg=#asctg#,askey=#askey#,joindate=#joindate#,exitdate=#exitdate#,status=#status# ,asname=#asname#,ceoname=#ceoname#,brno =#brno#,grno =#grno#,btype =#btype#,bkind =#bkind#,salesamount=#salesamount#,homeurl=#homeurl# ,mcount=#mcount#,aday =#aday# ,post =#post#,address1=#address1#,address2=#address2#,fgnobno=#fgnobno#,fgnobank=#fgnobank# ,eino=#eino# ,mname=case when #mname# is not null then #mname# else mname end ,mphone =case when #mphone# is not null then HEX(AES_ENCRYPT(#mphone#, )) else mphone end ,taxemail =case when #taxemail# is not null then HEX(AES_ENCRYPT(#taxemail#, )) else taxemail end where asno=#asno# update assign set ,isdel=1,brno=null where asno=#asno# insert into assignman (asno,mtype,jtype,depart,mname,position,telno,mobile,fax,email,post,address1,address2,isdel,) values (#asno#,#mtype#,#jtype#,#depart#,#mname#,#position# ,HEX(AES_ENCRYPT(#telno#, )) ,HEX(AES_ENCRYPT(#mobile#, )) ,HEX(AES_ENCRYPT(#fax#, )) ,HEX(AES_ENCRYPT(#email#, )) ,#post#,#address1#,#address2#,0,) update assignman set ,mtype =#mtype# ,jtype =#jtype# ,depart =#depart# ,mname =#mname# ,position=#position# ,telno =HEX(AES_ENCRYPT(#telno#, )) ,mobile =HEX(AES_ENCRYPT(#mobile#, )) ,fax =HEX(AES_ENCRYPT(#fax#, )) ,email =HEX(AES_ENCRYPT(#email#, )) ,post =#post# ,address1=#address1# ,address2=#address2# where asmno=#asmno# update assignman set ,isdel = 1 where asmno=#asmno# insert into assignfee (asno,fyear,fprice,fdate,fmemo,status,) select #asno#,#fyear#,#fprice#,#fdate#,#fmemo#,#status#, from (select 1 col1) a left outer join assignfee b on b.asno=#asno# and b.fyear=#fyear# where b.asno is null update assignfee set ,fprice=#fprice#,fdate =#fdate#,fmemo =#fmemo#,status=#status# where asno=#asno# and fyear=#fyear# delete from assignfee where asno=#asno# and fyear=#fyear# update assign set ,issite=#issite#,subdomain=#subdomain#,sitename=#sitename# ,siteip=#siteip# ,sitelogo=#sitelogo#,sitefooter=#sitefooter# where asno=#asno# update users set asno=#asno# where userno=#userno# update users set pwcalltime=,pwcallno=#pwcallno# where userno=#userno# update users set userpass=#userpass#, pwcalltime=null,pwcallno=null where userno=#userno# and pwcalltime is not null and pwcallno=#pwcallno# and date_add(pwcalltime, interval 24 hour) > update usercheck a inner join users b on b.userno=a.userno and b.userpass=#userpass# set a.checkkey=#checkkey# where a.userno=#userno#; insert into usercheck(userno,checkkey) select a.userno,#checkkey# from users a left outer join usercheck b on b.userno=a.userno where a.userno=#userno# and a.userpass=#userpass# and b.userno is null update users set ,exitreason=#exitreason# ,username='탈퇴회원',usernameeng=null,email=null,mobile=null,telno=null,birthday=null,vssn=null,di=null,ci=null,userpno=null,bankno=null,post=null,address1=null,address2=null,authplatform=0,status=99 where userno=#userno# update users a inner join assign b on b.asno=a.asno and b.siteip like concat('%',#siteip#,'%') set a.remotekey=#remotekey# where a.userid=#userid# and a.status=1 update users set ,snsid=#snsid# ,jointype=#jointype# where userno=#userno# insert into councel(userno,bldgcat,qtext,atext,) values (#userno#,#bldgcat#,#qtext#,#atext#,); SELECT LAST_INSERT_ID() update councel set ,bldgcat = #bldgcat# ,qtext = #qtext# ,atext = #atext# where bno=#bno# update councel set ,isdel = 1 where bno = #bno# update users set ,asno =#asno# where userno=#userno# update users set status = 9 userid =#userid# userno =#userno# update users set userpass=#userpass#,udt= where userno=#userno#