Backend/Spring Boot

[Spring/MySQL] SQL Error: 1064, SQLState: 42000 - MySQL μ˜ˆμ•½μ–΄ μ‚¬μš©ν•΄μ„œ λ‚˜λŠ” μ—λŸ¬

giraffe_ 2023. 2. 6. 17:27

πŸ’» μ—λŸ¬ λ©”μ‹œμ§€


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 'match (distance, match_date, max_start_time, min_start_time, place_id) values ' at line 1

 

 

 

 

 

πŸ” 원인


ν…Œμ΄λΈ”λͺ…인 match κ°€ MySQL μ˜ˆμ•½μ–΄μ—¬μ„œ 났닀.

 

MySQL μ˜ˆμ•½μ–΄ λͺ©λ‘μ„ κ²€μƒ‰ν•΄μ„œ 찾은 κ²°κ³Ό MATCH κ°€ μžˆλŠ” 것을 확인할 수 μžˆμ—ˆλ‹€.

 

https://zetawiki.com/wiki/MySQL_%EC%98%88%EC%95%BD%EC%96%B4

 

MySQL μ˜ˆμ•½μ–΄ - μ œνƒ€μœ„ν‚€

λ‹€μŒ λ¬Έμžμ—΄ 포함...

zetawiki.com

 

 

 

 

 

πŸ’‘ ν•΄κ²°


@Table(name = "`match`")

 

`@Table` μ–΄λ…Έν…Œμ΄μ…˜ `name`에 ν…Œμ΄λΈ” 이름을 λ°±ν‹±(`)으둜 κ°μ‹Έμ€˜μ„œ μ„€μ •ν•œλ‹€.

 

 

 

 

 

πŸ“š μ°Έκ³  자료


https://www.reimaginer.me/entry/JPA-SQL-Error-1064-SQLState-42000

 

JPAμ—μ„œ SQL Error: 1064, SQLState: 42000 λ§Œλ‚¬μ„ λ•Œ

https://stackoverflow.com/questions/41149529/sql-error-1064-sqlstate-42000-caused-by-org-hibernate-exception-sqlgrammar SQL Error: 1064, SQLState: 42000 - Caused by: org.hibernate.exception.SQLGrammarException: could not execute statement I am really exhau

www.reimaginer.me