'2019/10/28'에 해당되는 글 3건

  1. 2019.10.28 다른 테이블의 값을 이용하여 값 update 하기
  2. 2019.10.28 array_agg()와 unnest()
  3. 2019.10.28 data at rest (저장데이터)

join은 번거로우니 set 에다가 select로 값을 때려 넣기라는 좋은 방법이 있었네?

 

UPDATE table1 
   SET price=(SELECT price FROM table2 WHERE table1.id=table2.id);

[링크 : https://stackoverflow.com/questions/1746125/...]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postgresql ctid  (0) 2019.10.29
coalesce() / isnull()  (0) 2019.10.29
array_agg()와 unnest()  (0) 2019.10.28
postgres tde pgcrypto  (0) 2019.10.25
sql ' escape  (0) 2019.10.21
Posted by 구차니

이전에 만들었던것에 실수(?)를 한거 같은데..

여러가지 이유로 인해서 bigint array를 text로 저장했는데

이걸 다시 array로 돌려서 unnest() 하려면 먼가 희한하게 꼬인다.

아무튼.. 원래대로 돌릴려면

unnest(field::bigint[]) 로 하면 정상적으로 bigint형 배열로 해서 unnest()가 정상적으로 수행된다.

 

만약 아래처럼 하게 되면

unnest(string_to_array(field, ','))

{1,2} 에서

'{1'

'2}' 이런식으로 나오게 되니 주의가 필요

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

coalesce() / isnull()  (0) 2019.10.29
다른 테이블의 값을 이용하여 값 update 하기  (0) 2019.10.28
postgres tde pgcrypto  (0) 2019.10.25
sql ' escape  (0) 2019.10.21
sql pivot / crosstab  (0) 2019.10.20
Posted by 구차니

쉬고 있는 데이터일리는 없으니 검색을 하는데

스토리지에 저장되어 있는 상태를 data at rest라고 하는 듯?

아무래도 데이터가 살아나려면 메모리로 올라와야 하니.. 그렇게 표현하는건가?

 

[링크 : https://blog.naver.com/cososyskorea/221243921730]

 

Data at rest in information technology means inactive data that is stored physically in any digital form

[링크 : https://en.wikipedia.org/wiki/Data_at_rest]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

ETL - Extract Transform Load  (0) 2019.12.11
SAS expander  (0) 2019.11.02
sql join 집합별 쿼리(차집합, 교집합 등등)  (0) 2019.10.22
SPICE  (0) 2019.08.23
overlay FS  (0) 2019.07.18
Posted by 구차니