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 | 31 |
Tags
- IPA
- dataSource
- 단축키
- beanCreationException
- Query
- color
- mysql
- NoClassDefFoundError
- KVO
- Cluster
- mybatis
- bash
- googlemap
- sqlSession
- Exception
- 실행
- KVO_IS_RETAINING_ALL_OBSERVERS_OF_THIS_OBJECT_IF_IT_CRASHES_AN_OBSERVER_WAS_OVERRELEASED_OR_SMASHED
- backspace
- 색상 변경
- command not found
- delete button
- 아이튠즈
- Drawer
- UITextField
- api19
- 삭제
- Detect
- 삭제버튼
- itunes
- DELETE
Archives
- Today
- Total
목록내맘대로 프로그래밍/MariaDB&SQL (2)
BlueAroma
[MyBatis/SQL] 동적으로 map 에 담긴 key/value 이용하기
down voteacceptedNot sure, but I'll take a shot. When you use #{key}, MyBatis puts extra '' around it if it is a String, Date etc. If you give your column names with a variable you need to use direct Stringreplacement which is ${key}.The error log says something like ...right syntax to use near ''name') VALUES ('some value'...Can you try INSERT INTO t ${key} VALUES #{value} 참고 : https://stackove..
내맘대로 프로그래밍/MariaDB&SQL
2018. 2. 28. 20:24
[MyBatis/SQL] 위경도로 일정 반경 내 정보 가져오기
Sample_SQL.xml SELECT *,(6371*acos(cos(radians(#{latitude}))*cos(radians(latitude))*cos(radians(longitude)-radians(#{longitude}))+sin(radians(#{latitude}))*sin(radians(latitude))))AS distance FROM TABLE_NAME HAVINGdistance 특정 위경도에서 반경 2km 내의 데이터 추출
내맘대로 프로그래밍/MariaDB&SQL
2018. 2. 28. 20:20