[spring] JSON 타입 데이터 리턴 받기
@ResponseBody @ResponseStatus(HttpStatus.OK) @RequestMapping(value=”period/execPeriodProcedure”, method=RequestMethod.POST) public JsonResponseVO execProcedure(HttpServletRequest request, HttpSession session, @RequestParam Map<String, Object> params){ JsonResponseVO updateResponse = new JsonResponseVO(); try { ...
[ms-sql] where절에 like 조건으로 계좌번호 찾기
where절에 like 조건으로 계좌번호 찾는 방법 WHERE Contents LIKE ‘%[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]%’ –농협계좌번호 계좌번호 마스킹 처리 SELECT LEFT(LTRIM(RTRIM(Contents)), PATINDEX(‘%[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]%’,LTRIM(RTRIM(Contents)))+6 ) +’******’ + RIGHT(LTRIM(RTRIM(Contents)), len(LTRIM(RTRIM(Contents))) – patindex(‘%[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]%’,LTRIM(RTRIM(Contents)))-12) AS Change_Contents ,PATINDEX(‘%[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]%’,LTRIM(RTRIM(Contents))) AS POSITION FROM TB_TEST WHERE Contents LIKE ‘%[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]%’ –농협계좌번호
[ms-sql]프로시저 내에 특정테이블이나 칼럼 조회
MSSQL에서 프로시저 내에 특정 테이블 또는 칼럼 조회하는 방법 데이터베이스에서 사용중인 프로시저(Procedure) 를 검색할 때, 어떤 프로시저들에서 테이블명을 사용중인지, 또는 칼럼을 사용중인지 파악하고자 할 때...
[ms-sql] 특정 컬럼명이 존재하는 테이블 찾기
MSSQL에서 특정 컬럼명으로 테이블 찾기 다음 쿼리는 내가 찾고있는 COMP_ID를 포함하는 테이블을 찾아주는 쿼리입니다. SELECT * FROM INFORMATION_SCHEMA.COLUMNS A , INFORMATION_SCHEMA.TABLES B WHERE A.TABLE_NAME = B.TABLE_NAME AND A.COLUMN_NAME like ‘%COMP_ID%’ AND B.TABLE_TYPE=’BASE TABLE’
[ms-sql]저장 프로시저 호출 통계 (stored procedure statistics) 보는 스크립트
저장 프로시저 호출 통계 SELECT TOP 30 d.object_id , d.database_id , OBJECT_NAME(object_id, database_id) ‘proc name’ , d.cached_time, d.last_execution_time, d.total_elapsed_time , d.total_elapsed_time/d.execution_count AS [avg_elapsed_time] , d.last_elapsed_time, d.execution_count FROM sys.dm_exec_procedure_stats AS d ORDER BY [total_worker_time] DESC;
[ms-sql] 테이블 Description 보는 방법
mssql 테이블 Description 보는 쿼리 아래 2개의 쿼리 중에 아무거나 실행하면 테이블 디스크립션을 볼 수 있다. 방법1 SELECT [Table Name] = OBJECT_NAME(c.object_id), [Column Name] = c.name, [Description] = ex.value , is_nullable , is_identity,max_length FROM sys.columns c LEFT OUTER JOIN...
픽셀2(Pixel2) 액정 파손 자가 수리하기 ( 절대 비추해요!!)
잘 사용하던 Pixel2 휴대폰을 거실 바닥에 떨어뜨리는 바람에 액정에 금이 갔다. 깨진 액정에서 유리가루가 조금씩 떨어진다는 정보를 알게되었고, 강화유리를 구매하기 위해 아마존앱을 켜고 검색하였다. 깨진...
건강보험료 조회방법 및 국민건강보험(지역가입자, 직장가입자) 보험료 산정 기준 알아보기
건강보험료 조회하는 방법 h-well 국민건강보험 사이트 방문후 “보험료 조회/납부” 메뉴를 선택합니다. 조회기간을 설정하여 조회할 수 있으며, 기본적으로 가장 최근 6개월 보험료가 조회됩니다. 서비스를 이용하기...
[결혼식 D-1] 만 24살에 결혼하는 딸, 결혼식 전날 아빠의 반응
유튜버인데 주차장에서 아빠한테 가볍게 “내가 결혼하니까 심정이 어때?” 물었더니 “어떤 인연이 돼서, 세상에 어떤 이치로 우리 둘이 만나게 됐는가는 몰라도. 아무튼 너 어렸을때부터 너 키우면서...
[iOS] 엑스코드 (Xcode) 사용법 알아보기 및 플레이그라운드(Playground) 실행방법 / 단축키
엑스코드 기본 사용법에 대해 알아봅니다. 신규프로젝트 생성방법 아래글을 참고하세요. 애플 앱 개발을 위한 좌충우돌 Xcode 설치 (macOS Monterey beta로 업그레이드도 함께!!! ) iOS 어플...