본문 바로가기

전체 글

(291)
[mysql] Recursive 더보기 https://inpa.tistory.com/entry/MYSQL-%F0%9F%93%9A-RECURSIVE-%EC%9E%AC%EA%B7%80-%EC%BF%BC%EB%A6%AC [MYSQL] 📚 RECURSIVE (재귀 쿼리) WITH RECURSIVE 문 (재귀 쿼리) 프로그래밍에서 재귀 함수를 들어봤듯이, SQL에서도 재귀 쿼리 기법이 존재한다. 다만 문법이 굉장히 해괴한데 우선 WITH RECURSIVE 쿼리문을 작성하고 내부에 UNION을 통해 inpa.tistory.com WITH RECURSIVE 문 재귀 쿼리 프로그래밍 재귀함수 처럼 SQL에서 재귀 방식을 사용하는 방법임 WITH RECURSIVE cte_count AS ( -- Non-Recursive 문장( 첫번째 루프에서만 실행됨..
[mysql] 멀티게시판 구현 설계 -- 게시판 종류를 저장하는 테이블 CREATE TABLE board_type ( type_id INT NOT NULL AUTO_INCREMENT, type_name VARCHAR(50) NOT NULL, PRIMARY KEY (type_id) ); -- 게시글 정보를 저장하는 테이블 CREATE TABLE board_post ( post_id INT NOT NULL AUTO_INCREMENT, board_type_id INT NOT NULL, title VARCHAR(100) NOT NULL, content TEXT, writer VARCHAR(50), created_at DATETIME DEFAULT CURRENT_TIMESTAMP, updated_at DATETIME DEFAULT CURRENT_T..
[mysql] with 절(가상테이블) 02 더보기 https://dev.mysql.com/doc/refman/8.0/en/with.html MySQL :: MySQL 8.0 Reference Manual :: 13.2.20 WITH (Common Table Expressions) 13.2.20 WITH (Common Table Expressions) A common table expression (CTE) is a named temporary result set that exists within the scope of a single statement and that can be referred to later within that statement, possibly multiple times. The following disc dev.mysql..
[mysql] with 절(가상테이블) 01 더보기 https://inpa.tistory.com/entry/MYSQL-%F0%9F%93%9A-WITH-%EC%9E%84%EC%8B%9C-%ED%85%8C%EC%9D%B4%EB%B8%94 [MYSQL] 📚 WITH (임시 테이블 생성) WITH (임시 테이블) SQL을 통해 빅데이터라 불리는 매우 크고 무거운 데이터를 다루는데, 새로운 결과를 원하고 저장할 때마다 table을 저장할 수 없다. 또한, 실무에서는 실제 실행 속도도 빠르게 inpa.tistory.com https://velog.io/@genieee/with%EC%A0%88-%EA%B0%80%EC%83%81%ED%85%8C%EC%9D%B4%EB%B8%94-%EA%B0%84%EB%8B%A8-%EC%A0%95%EB%A6%AC with절 (가상테..
[Baedung] Best Practices for REST API Error Handling 더보기 https://www.baeldung.com/rest-api-error-handling-best-practices 링크의 포스팅 일자 2021.5.13 REST 는 Client가 서버의 resource에 access and manipulate 하는 stateless한 아키텍쳐이다 보통 REST service들은 HTTP를 활용한다 HTTP Status Codes 클라이언트가 HTTP 서버에 request하고 요청을 성공적으로 수신하면 서버는 해당 처리 여부를 response해준다 HTTP accomplishes this with five categories of status codes: 100-level (Informational) – server acknowledges a request //서버..
[Spring Framework core] 3. Validation, Data Binding, and Type Conversion (3) 3.4. Spring Type Conversion 더보기 https://docs.spring.io/spring-framework/docs/current/reference/html/core.html#core-convert core.convert 패키지에서 일반적인 유형 변환 시스템을 제공한다. 시스템은 유형 변환 로직을 구현하기 위한 SPI와 런타임에 유형 변환을 수행하기 위한 API를 정의한다. Spring 컨테이너 내에서 이 시스템을 구현의 대안으로 사용하여 PropertyEditor외부화된 빈 속성 값 문자열을 필수 속성 유형으로 변환할 수 있다. 유형 변환이 필요한 애플리케이션의 모든 위치에서 공용 API를 사용할 수 있다. 3.4.1. Converter SPI SPI = Service Provid..
[운영체제] 정보란 정보의 최소 단위 => 두 가지 사건 중 하나가 발생했을 때 p(x) = 1/2 일 때 를 1 bit = 1 binary digit 을 말한다 정보의 양을 정확하게 알 수 있게 An information can be dfined as - a quantitative representation that measures the uncertainty 정보이 최소 단위 bit (binary digit) 8bit = 1byte 1M 1G 1T .... 정보의 처리 : 정보의 상태 변환 (0 에서 1, 1에서 0) bool 대수(Boolean Algebra) = NOT, AND, OR 모든 연산이 가능함 논리 게이트 : NOT, AND, OR, XOR, NAND, NOR 논리 회로 : IC, LSI, VLSI, UL..
[Data JPA] Specification 더보기 https://vladmihalcea.com/spring-data-jpa-specification/ the BaseJpaRepository from the Hypersistence Utils project, which is a better alternative to the default JpaRepository from Spring Data the JpaSpecificationExecutor, which provides the Spring Data Specification filtering methods 가져와야하는 검색 Specification 을 미리 인터페이스화 한다 @Repository public interface PostCommentRepository extends BaseJpaRepo..

728x90