단 시간이 너무 걸릴 수 있다.


가장 좋은 방법은 컬럼명, 길리, 형식을 미리 모두 정하는 것이다.

이러면 빠르게 binding 된다.


float fWidth = 0;

foreach (FarPoint.Win.Spread.Column col in grdMain.ActiveSheet.Columns)

{
        col.Width = col.Label.Length * 8;
        fWidth = col.Width;
       col.Width = fWidth > col.GetPreferredWidth() ? fWidth : col.GetPreferredWidth();


Posted by like winds
,

y <- sapply(stpos:edpos, function(x) {  paste0(  if ( is.na(inf_dt[x,])) { "NA" } else { inf_dt[x,] }  , collapse="', '")  


R 에서 Null(NA) 가 들어간 문장을 DB 로 던지면

truncate 문자이 반환이 되면서 오류가 발생된다.


st.stat_cd = it_tb.stat_cd
.... truncate


원인은 NA (null) 이 포함된 문장이기 때문이다.


is.na 로 검사를 해서 걸러내거나 변환


'IT' 카테고리의 다른 글

java JRE 64bit  (0) 2015.01.04
안드로이드용 RAR. RAR for Android on Google Play  (0) 2014.12.15
winrar 압축시에 yyyyMMddhhmmss 가 기록되는 방법  (0) 2014.12.04
FACEBOOK 연동 - sharer.php  (0) 2014.09.15
Posted by like winds
,