여분필드 사용시 궁금한점... 정보
여분필드 사용시 궁금한점...본문
여분필드를 사용할때
$ex5_filed = explode("|",$write[wr_5]);
$ext5_00 = $ex5_filed[0];
$ext5_01 = $ex5_filed[1];
$ext5_02 = $ex5_filed[2];
$ext5_03 = $ex5_filed[3];
$ext5_04 = $ex5_filed[4];
$ext5_05 = $ex5_filed[5];
$ext5_06 = $ex5_filed[6];
$ext5_07 = $ex5_filed[7];
$ext5_08 = $ex5_filed[8];
$ext5_09 = $ex5_filed[9];
$ext5_10 = $ex5_filed[10];
$ext5_11 = $ex5_filed[11];
$ext5_12 = $ex5_filed[12];
$ext5_13 = $ex5_filed[13];
$ext5_14 = $ex5_filed[14];
$ext5_15 = $ex5_filed[15];
$ext5_16 = $ex5_filed[16];
$ext5_17 = $ex5_filed[17];
$ext5_18 = $ex5_filed[18];
$ext5_19 = $ex5_filed[19];
$ext5_20 = $ex5_filed[20];
$ext5_21 = $ex5_filed[21];
$ext5_22 = $ex5_filed[22];
$ext5_23 = $ex5_filed[23];
$ext5_24 = $ex5_filed[24];
$ext5_25 = $ex5_filed[25];
$ext5_26 = $ex5_filed[26];
$ext5_27 = $ex5_filed[27];
$ext5_28 = $ex5_filed[28];
$ext5_29 = $ex5_filed[29];
$ext5_30 = $ex5_filed[30];
$ext5_00 = $ex5_filed[0];
$ext5_01 = $ex5_filed[1];
$ext5_02 = $ex5_filed[2];
$ext5_03 = $ex5_filed[3];
$ext5_04 = $ex5_filed[4];
$ext5_05 = $ex5_filed[5];
$ext5_06 = $ex5_filed[6];
$ext5_07 = $ex5_filed[7];
$ext5_08 = $ex5_filed[8];
$ext5_09 = $ex5_filed[9];
$ext5_10 = $ex5_filed[10];
$ext5_11 = $ex5_filed[11];
$ext5_12 = $ex5_filed[12];
$ext5_13 = $ex5_filed[13];
$ext5_14 = $ex5_filed[14];
$ext5_15 = $ex5_filed[15];
$ext5_16 = $ex5_filed[16];
$ext5_17 = $ex5_filed[17];
$ext5_18 = $ex5_filed[18];
$ext5_19 = $ex5_filed[19];
$ext5_20 = $ex5_filed[20];
$ext5_21 = $ex5_filed[21];
$ext5_22 = $ex5_filed[22];
$ext5_23 = $ex5_filed[23];
$ext5_24 = $ex5_filed[24];
$ext5_25 = $ex5_filed[25];
$ext5_26 = $ex5_filed[26];
$ext5_27 = $ex5_filed[27];
$ext5_28 = $ex5_filed[28];
$ext5_29 = $ex5_filed[29];
$ext5_30 = $ex5_filed[30];
이런식으로 길게 써도 어떤 영향이 없나요??
아니면 몇개 이상쓰면 다른 필드로 바꿔줘야하나요..
일단 써봤는데 별문제는 없는것 같은데 나중에 혹시 문제가 생기면 낭패 일것 같아 여쭤 봅니다.
그럼 수고하세요!!!
댓글 전체
wr_5 필드타입이 text로 되어있어도 너무많은 정보가 있으면 더이상 저장이 안될 수 있습니다.
적절히 분배하시는것이 좋을듯 합니다.^^
불러오는데도 시간이 더 걸릴것 같기도 하구요 ~
적절히 분배하시는것이 좋을듯 합니다.^^
불러오는데도 시간이 더 걸릴것 같기도 하구요 ~
wr_5는 수정을 안 했다면 영문 255자, 한글은 1/2(UTF-8 1/3)
text는 6만5000자
데이터 양을 잘 계산해서 쓰시면 됩니다.
text는 6만5000자
데이터 양을 잘 계산해서 쓰시면 됩니다.
쪼개진 필드안에 어떤 내용이 들어 가느냐에 따라서 달라지게 됩니다.
단순하게 10자 이하로 들어간다면 수십개라도 가능하지만
각배열마다 들어가는 데이터의 길이가 길다면 몇개마다 필드를 바꾸어야겠죠.
단순하게 10자 이하로 들어간다면 수십개라도 가능하지만
각배열마다 들어가는 데이터의 길이가 길다면 몇개마다 필드를 바꾸어야겠죠.
전 50개이상 쪼개서 쓰는데도 아무 문제 없던데여? 물론 필드타입은 text로 했구요. 큰 데이터 저장만 아니라면 문제없을 겁니다.