반응형
대소문자 구분없이 조회
<if test='searchType eq "K" and searchKeyword != null and searchKeyword != ""'>
AND UPPER(table_kor_name) like UPPER('%' || #{searchKeyword} || '%')
AND LOWER(table_kor_name) like LOWER('%' || #{searchKeyword} || '%')
</if>
foreach문속 option selected
<select id="selectDataset" name="dataListSeq" style="width: 300px;">
<option value="">데이터 셋을 선택하세요</option>
<c:forEach var="item" items="${dataset}" varStatus="s">
<option value="${item.dataListSeq}"
<c:if test="${pCDV eq item.dataListSeq }">selected</c:if> >
${item.korName}_v.${item.version}
</option>
</c:forEach>
</select>
반응형
'Backend > DB 실무' 카테고리의 다른 글
[Mybaytis] Mybatis에러 (0) | 2024.01.11 |
---|---|
01/09 회고 (0) | 2024.01.09 |
[Mybatis] The column index is out of range & COALESCE(A, B) (0) | 2023.11.09 |
[Mybatis] foreach문과 사용되는 Mybatis 요소 정의 (0) | 2023.10.31 |
[SQL] ROW_NUMBER()/RANK() OVER() (0) | 2023.10.18 |