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 |
Tags
- SDK
- xml
- 기초
- 시리얼 통신
- PostgreSQL
- Delphi
- VB.NET
- MFC
- 초보
- Visual Studio 2005
- vb
- 파라미터
- 소니
- 설치
- 파이어버드
- SQL
- 예제
- winsock
- WIN32 SDK
- 인스톨
- dll
- c#
- Visual Basic
- MySQL
- 문자열
- 델파이
- 데이터베이스
- 셋업
- 입문
- Firebird
Archives
- Today
- Total
프로그래밍 노트
Firebird의 Timestamp에서 특정 년이나 월이나 일만을 검색하는 방법 본문
Firebird의 Timestamp에서 특정 년월일만을 검색하는 방법
extract를 사용하면 TIMESTAMP형 필드에서 년,월,일에 대해 검색하기가 쉬워진다.
select * from testLOG
where
extract(year from logStamp) > 2007 and
extract(month from logStamp) = 1 and
extract(day from logStamp) < 10 and
where
extract(year from logStamp) > 2007 and
extract(month from logStamp) = 1 and
extract(day from logStamp) < 10 and
extract를 사용하면 TIMESTAMP형 필드에서 년,월,일에 대해 검색하기가 쉬워진다.