그누보드inner join 하려는데요 간단한건데 좀봐주세요 ^^:
본문
게시판 파일 이랑 실제 파일명을 출력하려고하는데요
test 게시판 확장자 1번 쨰를 출력하려는데
밑에와같이하면 모든게시판1번 다출력되더라고요
test 게시판 wr_id 1번만 출력하렴 어떻게 수정하면되나요?
select b.wr_file,f.bf_file from g5_write_test as b inner join g5_board_file as f on b.wr_id=f.wr_id where b.wr_id=1
답변 1
select b.wr_file,f.bf_file from g5_write_test as b inner join g5_board_file as f on b.wr_id=f.wr_id where b.wr_id=1 and b.bo_table = 'test'
답변을 작성하시기 전에 로그인 해주세요.