일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- python
- ubuntu
- ngui
- SSH
- postgresql
- sql
- dataframe
- conda
- autovacuum
- null
- Eclipse
- mysql
- if
- with
- expect
- pi
- FIND
- c++11
- SVN
- DROP
- List
- C++
- 배열
- Unity
- 쉘
- pandas
- awk
- boost
- Shader
- sqlite
Archives
- Today
- Total
その先にあるもの…
postgresql case 본문
update table-name set field = case value
when 1 then 10
when 2 then 20
when 3 then 30
when 4 then 40
when 5 then 50
end;
public.function()
~~~
begin
case value
when 1 then
return 10
when 2 then
return 20
when 3 then
return 30
when 4 then
return 40
when 5 then
return 50
end case;
end;
'프로그래밍 > SQL' 카테고리의 다른 글
postgres start 문제 해결 경험 1 (0) | 2021.06.03 |
---|---|
database,user 생성 (0) | 2021.03.30 |
psql 에서 함수 보기 (0) | 2021.03.09 |
postgresql psql 유저 접속 (0) | 2021.02.24 |
postgresql 쿼리로 버전 확인 (0) | 2021.02.24 |
Comments