분류 전체보기 (38) 썸네일형 리스트형 [Oracle] 입양 시각 구하기(1) https://school.programmers.co.kr/learn/courses/30/lessons/59412 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 1. TO_NUMBER로 형변환 2. TO_CHAR(DATETIME, 'HH24') 시간 단위로 GROUP BY, ORDER BY TIP WHERE : FROM절 뒤에 위치하고 GROUP BY, ORDER BY 되기 전 필드에 대해 조건 HAVING : GROUP BY 이후 필드에 대해서 조건 SELECT TO_NUMBER(TO_CHAR(DATETIME, 'HH24')) AS HOUR ,COUNT.. [SQL] 조건에 부합하는 중고거래 댓글 조회하기 - 프로그래머스 조건에 부합하는 중고거래 댓글 조회하기 https://school.programmers.co.kr/learn/courses/30/lessons/164673 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 문제풀이 1. 조회 목록 확인 2. 테이블 확인 3. 조인 4. 조건 - 댓글 작성일(BETWEEN [A] AND [B]) 5. 정렬(ORDER BY) SELECT A.TITLE ,A.BOARD_ID ,B.REPLY_ID ,B.WRITER_ID ,B.CONTENTS ,TO_CHAR(B.CREATED_DATE, 'yyyy-mm-dd') FROM USED_GO.. [Spring Boot] java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 에러 에러 JPA, MySQL 사용 결과 에러 발생 java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 해결 1. MySQL 문법이 잘못 쓰인게 있는지 확인 2. 문법 잘못 쓰인게 없을 시, MySQL 예약어 사용 확인(Order 등등) 3. MySQL 예약어를 사용중일 경우 예약어 사이에 \" 추가 ex. \"(예약어)\" 변경 전 변경 후 spring initializr을 사용하여 Spring Boot 시작하기 spring initializr을 사용하여 Spring Boot 시작하기 https://start.spring.io/ 접속 Project - 빌드 툴 선택 Maven 특징 : 쉬운 빌드, pom.xml을 이용한 정형화된 빌드 시스템, 뛰어난 프로젝트 정보 제공, 개발 가이드 라인 제공 Gradle 특징 : 유연한 범용 빌드 도구, 멀티 프로젝트에 사용하기 좋음, 빠른 빌드 속도 최근 Gradle을 많이 사용하는 추세 Language - 언어 선택 Spring Boot - 버전 선택 SNAPSHOT : 개발중인 버전 M : 정식 릴리즈되지 않는 버전 아무것도 붙어있지 않는 것 : 정식 버전 2.6.x 버전에 경우 스웨거 연결시 오류가 발생 할 수 있다 Project Metadata Group : 도메인명 .. [React] 에러해결 React Hook "" is called in function "" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" 에러 발생 React Hook "" is called in function "" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" 에러 해결 React 컴포넌트 이름은 대문자로 시작 ex) const user = () => {} const User = () => {} user -> User 대문자로 변경 [Spring Boot] Using named parameters for method public abstract void '' but parameter not found in annotated query Spring Boot JPA 오류 Using named parameters for method public abstract void '' but parameter not found in annotated query 해결 JpaRepository에서 쿼리문 사용시 데이터 @Param으로 연결 기존 @Transactional @Modifying @Query(value = "UPDATE users SET userName = :userName where userId = 1 ", nativeQuery = true) void user(String userName); 변경 @Transactional @Modifying @Query(value = "UPDATE users SET userName = :userName w.. [Spring Boot] Inferred type 'S' for type parameter 'S' is not within its bound; should extend 에러 Inferred type 'S' for type parameter 'S' is not within its bound; should extend 및 error: method save in interface CrudRepository cannot be applied to given types 에러 해결 JPA JpaRepository 매개변수 확인, 인터페이스 명 일치 확인 [Spring Boot] Protocol handler start failed 에러 에러 Protocol handler start failed 해결 포트 충돌 에러 1. cmd 창 실행 후 netstat -ano 입력 2. 해당 포트 찾은 PID 찾은 후 3. taskkill /F /PID (PID 번호)로 프로세스 종료 이전 1 2 3 4 5 다음