728x90
반응형
@
1
2
3
|
public String testileInsertAct (DataMap dataMap) throws Exception {
return (String) (insert(" testDAO . testileInsertAct ", dataMap));
}
|
cs |
@
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<insert id="testDAO.testileInsertAct" parameterClass="dataMap">
<selectKey keyProperty="fileSeq" resultClass="java.lang.String" type="pre">
SELECT NVL(MAX(파일일련번호),0)+1 AS SEQ FROM 파일테이블
</selectKey>
INSERT INTO 파일테이블 (
아이디
, 오리지널 파일이름
, 위치
, 확장자
, 파일사이즈
, 파일구분
, 파일일련번호
) VALUES (
#아이디#
, #오리지널 파일이름#
, #위치#
, #확장자#
, #파일사이즈#
, #파일구분#
, #파일일련번호#
)
</insert>
|
cs |
@
에러 must be followed by either attribute specifications가 발생하면
<selectKey keyProperty="fileSeq" resultClass="java.lang.String" type="pre">가 있는 라인에
스페이스부분을 다시 작성한다. 복붙하면 스페이스가 따라오지 않는 현상이다.
728x90
반응형