본문 바로가기

전체 글

C# 양력 음력 변환 1. 양력 -> 음력 변환 public string ToLunarDate(string _year, string _month, string _day) { KoreanLunisolarCalendar klc = new KoreanLunisolarCalendar(); int year = Convert.ToInt32(_year); int month = Convert.ToInt32(_month); int day = Convert.ToInt32(_day); if (klc.GetMonthsInYear(year) > 12) { int leapMonth = klc.GetLeapMonth(year); if (month >= leapMonth) { month--; } } return new DateTime(year, mont.. 더보기
MSSQL SSMS 단축키 단축키 동작 ALT SSMS 메뉴바로 이동Move to the SQL Server Management Studio menu bar ALT+HYPHEN 도구상자 메뉴 활성화(실제로는 도구상자에서 펼친 창 닫기) SHIFT+F10 컨텍스트 메뉴 표시(오른쪽 마우스 버튼과 동일) CTRL+N 새 파일(새 창) 표시 CTRL+SHIFT+N 새 프로젝트 만들기 CTRL+O 파일 열기 CTRL+SHIFT+O 프로젝트 열기 CTRL+SHIFT+A 현재 프로젝트에 새 항목 추가 ALT+SHIFT+A 현재 프로젝트에 기존 항목 추가 CTRL+SHIFT+Q 쿼리 디자이너 표시 ESC 취소 또는 메뉴 닫기 CTRL-SHIFT-F2 책갈피 초기화 CTRL+F2 책갈피 삽입 또는 삭제(토글) F2 다음 책갈피 가기 SHIFT+.. 더보기
Oracle 대용량 데이터 병렬처리하기 -- 대용량 데이터 병렬처리하기 -- 해당 세션에 parallel dml 옵션을 enable 해준다. alter session enable parallel dml; -- 임시테이블에 insert 시 nologging 옵션으로 redo를 남지 않게 하여 수행속도를 향상시킨다. alter table temp_table_name nologging; -- parallel 은 8로 주었다. insert /* parallel (temp_table_name, 8) */ into temp_table_name select /* parallel (table_name, 8) */ * from table_name ; commit; -- 테이블을 다시 logging 되도록 alter alter table temp_table_n.. 더보기