반응형 반응형 전체 글130 반응형 자바스크립트 1초마다 실행 , 반복적으로 실행 , setInterval // 1초마다 실행 setInterval(function(){ if($('#medgdsList tr').length > 5){ $div.find('.c_blue_ls').attr('disabled',true); }else{ $div.find('.c_blue_ls').attr('disabled',false); } },1000); 2021. 1. 13. oracle 페이지나누기 , mysql 페이지나누기 /* oracle */ SELECT * FROM( select rownum as rn,A.* from( select rownum,bno,writer,subject,regdate,username from inquireboard b,user2 u where b.writer = u.userid order by bno )A ) where rn between 1 and 5; /* mysql || mariaDB */ select * from table limit 0 , 5; 2021. 1. 13. oracle table 생성, 시퀀스 생성 /* table 생성 */ create table noticereply( rno number not null primary key, bno number, replytext varchar2(4000) not null, replyer varchar2(50) not null, regdate date default sysdate, updatedate date default sysdate ); alter table noticereply add constraint notice_board foreign key(bno) references noticeboard2(bno); /* 시퀀스 생성 */ create sequence noticereply_seq start with 1 increment by 1 maxvalue .. 2021. 1. 13. 스프링게시판만들기 글삭제 사실 회사에와서 단한번도 써본적이없던... 후 복구힘들다 오타있을수있음 jsp onclick="javascript:location.href='crazydelete.do?bno=${bno.bno}'" value="삭제" delete from crazyboard where bno =#{bno} //dao public void crazydelete(int bno)throws Exception; //daoImpl @Override public void crazydelete(int bno) throws Exception { session.delete("crazy.boarddelete",bno); } //service public void crazydelete(int bno)throws Exception; //se.. 2021. 1. 12. 이전 1 ··· 21 22 23 24 25 26 27 ··· 33 다음 반응형