파일첨부(3)
-
다운로드 게시판
download.sql file 첨부에 필요한 filed 첨부되는 실제 파일 이름 실제 업로드된 파일 파일의 타입 create table download ( num int not null auto_increment, id char(15) not null, name char(10) not null, nick char(10) not null, subject char(100) not null, content text not null, regist_day char(20), hit int, file_name_0 char(40), file_name_1 char(40), file_name_2 char(40), file_name_3 char(40), file_name_4 char(40), file_copied_0 ch..
2022.02.24
-
이미지 첨부 게시판
/concert/concert.sql create table concert ( num int not null auto_increment, id char(15) not null, name char(10) not null, nick char(10) not null, subject char(100) not null, content text not null, regist_day char(20), hit int, is_html char(1), file_name_0 char(40), file_name_1 char(40), file_name_2 char(40), file_name_3 char(40), file_name_4 char(40), file_copied_0 char(30), file_copied_1 char(..
2022.02.22
-
MySQL file upload
DB에 파일을 저장할 때는 파일명과 실제 파일을 DB에 올리고, 둘을 짝으로 링크시켜 저장한다. file.sql file_name_0 : 실제 파일 이름을 저장한다. file_copied_0 : 년월일시분초_0.jpg 로 이름이 변경되어 실제 파일이 서버에 저장된다. 위 2개의 파일이 서로 짝으로 링크되어 서버에 저장된다. create table file ( num int not null auto_increment, file_name_0 char(40), file_name_1 char(40), file_copied_0 char(30), file_copied_1 char(30), primary key(num) ); file.html // 용량이 큰 데이터를 처리할때 쓰이므로, 파일을 첨부할때는 항상 써준다..
2022.02.15