목록2017/06/14 (5)
C#,Delphi,Oracle,MSSQL 개발자블로그
fpSpread1 이라는 스프레드에 pictureBox1의 이미지를 넣는 소스. FarPoint.Win.Spread.CellType.ImageCellType imgcell = new FarPoint.Win.Spread.CellType.ImageCellType(); System.Drawing.Image image = pictureBox1.Image; fpSpread1.ActiveSheet.Cells[1, 7].CellType = imgcell;
spdPrac 이라는 스프레드가 있을 떄, 0번째 컬럼의 너비를 조절하는 소스. Column col = spdPrac.ActiveSheet.Columns[0]; col.Width = col.GetPreferredWidth();
1. 현재 주간current week의 첫번째 날TRUNC(sysdate,'IW') 2. 이전 주간prior week의 첫번째 날TRUNC(sysdate-7,'IW') 3. 다음 주간next week의 첫번째 날NEXT_DAY(sysdate,'MONDAY') 4. 현재 달current month의 첫번째 날TRUNC(sysdate,'MM') 5. 이전 달prior month의 첫번째 날ADD_MONTHS( TRUNC(sysdate,'MM'), -1 ) 6. 다음 달next month의 첫번째 날ADD_MONTHS( TRUNC(sysdate,'MM'), 1 ) 7. 현재 달current month의 마지막 날LAST_DAY(sysdate) 출처 : http://jdm.kr/blog/71
- 폴더체크 System.IO.DirectoryInfo di = new System.IO.DirectoryInfo("폴더경로"); if(di.Exists) { // 폴더 존재 } else { //폴더 없음 - 파일 체크 string _Filestr = "파일 경로"; System.IO.FileInfo fi = new System.IO.FileInfo(_Filestr); if(fi.Exists) { // 파일 존재 } else { // 파일 없음 } 출처 : http://lhh3520.tistory.com/66
1. 계정의 테이블 스페이스 생성 create tablespace [tablespace_name] datafile '/home/oracle/oradata/DANBEE/[file_name].dbf' size 500m; 예) CREATE TABLESPACE ADMIN DATAFILE 'D:\ORACLE\ORADATA\XE\ADMIN.dbf' SIZE 500M ; 2. 오라클 유저 만들기 CREATE USER [user_name] IDENTIFIED BY [password] DEFAULT TABLESPACE [tablespace_name] TEMPORARY TABLESPACE TEMP; 예) CREATE USER nextree IDENTIFIED BY nextree DEFAULT TABLESPACE NEXTR..