티스토리 뷰
쿼리문 MS-SQL
/*********************************************************************
DB : totooutdoor
name : [up_st_tto_t_brand_brandList_select]
auth : 장정훈
date : 2014-11-18
desc : 브랜드 목록
exec up_st_tto_t_brand_brandList_select
*********************************************************************/
alter proc [dbo].up_st_tto_t_brand_brandList_select
as
begin
select
'ㄱ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㄱ' and '깋' or hanName between 'ㄲ' and '낗'
union all
select
'ㄴ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㄴ' and '닣'
union all
select
'ㄷ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㄷ' and '딯' or hanName between 'ㄸ' and '띻'
union all
select
'ㄹ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㄹ' and '맇'
union all
select
'ㅁ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅁ' and '밓'
union all
select
'ㅂ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅂ' and '빟' or hanName between 'ㅃ' and '삫'
union all
select
'ㅅ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅅ' and '싷' or hanName between 'ㅆ' and '앃'
union all
select
'ㅇ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅇ' and '잏'
union all
select
'ㅈ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅈ' and '짛' or hanName between 'ㅉ' and '찧'
union all
select
'ㅊ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅊ' and '칳'
union all
select
'ㅋ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅋ' and '킿'
union all
select
'ㅌ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅌ' and '팋'
union all
select
'ㅍ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅍ' and '핗'
union all
select
'ㅎ' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName between 'ㅎ' and '힣'
union all
select
'etc' as CharacterType
, uid as BrandUid
, name as BrandNameEnglish
, hanName as BrandKoreaName
from t_brand with(nolock)
where isConfirm = 'T'
and hanName not between '가' and '힣'
end
코드 C#
IList<BrandEntityL> brandLIst = this.brandMall.BrandList();
// LINKQ
mainEntity.CharacterTypeㄱ = from a in brandLIst
where a.CharacterType == "ㄱ"
select a;
- Total
- Today
- Yesterday
- 스프링 시큐리티(spring security)
- React
- 람다식(lambda expression)
- java 키워드 정리
- jsp 오픈 소스
- java.sql
- 메이븐(maven)
- docker
- System.Diagnostics
- 특정 문자를 기준으로 자르기
- await
- nl2br
- 진수 변환
- 스프링 프레임워크(spring framework)
- 인텔리제이(intellij)
- REST API
- jstl(java standard tag library)-core
- 제품 등록
- 스프링 프레임워크(spring framewordk)
- system.io
- .submit()
- error-java
- In App Purchase
- jstl(java standard tag library)
- 스프링 시큐리티(spring security)-http basic 인증
- 표현 언어(expression language)
- java web-mvc
- java-개발 환경 설정하기
- 문자 자르기
- MainActor
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |