반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- bootstrap
- chartjs
- java bigdecimal
- codebuild
- kubeflow
- redis
- Flux
- SQL
- VPN
- codedeploy error
- codedeploy
- COALESCE
- Airflow
- Jenkins
- JavaScript
- chart.js
- Spring
- or some instances in your deployment group are experiencing problems.
- AWS CI/CD 구축하기
- aws cicd
- Kafka
- IntelliJ
- Spring Error
- docker
- Python
- 도커
- node
- codepipeline
- PostgreSQL
- aws
Archives
- Today
- Total
Small Asteroid Blog
[JPA]No results returned by the Query error in PostgreSQL 본문
728x90
JPA 에서 repository 에서 query 문에 update를 사용하는데
아래 어노테이션이 없으면 다음과 같은 에러가 발생한다.
Modifying 어노테이션을 추가해주면 된다.
@Modifying
내가 작성한 코드
@Modifying
@Query(value = "update schema.dbname set date = to_date(date,'DD Mon YYYY') where site='news' and date not like '%-%'",nativeQuery = true)
void updateDate();
728x90
반응형