'2019/06/28'에 해당되는 글 2건

  1. 2019.06.28 node.js readline()
  2. 2019.06.28 union sql
Programming/node.js2019. 6. 28. 15:55

'Programming > node.js' 카테고리의 다른 글

node.js xpath select() select1()  (0) 2019.07.25
node.js xpath apidoc  (0) 2019.07.25
node.js 메모리 사용 가능 용량 늘리기  (0) 2019.06.21
node.js fs.createreadstream highWaterMark  (0) 2019.06.19
node.js xml2js  (0) 2019.06.19
Posted by 구차니

단순하게 두개의 테이블을 합쳐주는 역활을 하는 듯?

 

[링크 : http://www.postgresqltutorial.com/postgresql-union/]

 

+

이름이 서로 다른 항목을 union으로 합치니

postgresql에서 ?column? 으로 나와버려서 이름 바꾸려고 고군분투!

 

SELECT 'name' AS A FROM B

UNION

SELECT 'symbol' AS A FROM C

이런식으로 하면 AS 'A'가 컬럼 명으로 인식되서 나온다!

[링크 : https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cae16db2-c08b-46bd-8b7b-d7941347ad3d/behaviour-of-union-when-select-column-names-differ-and-order-by-is-used?forum=transactsql]

 

[링크 : http://www.postgresqltutorial.com/postgresql-select-distinct/]

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

pgfutter  (0) 2019.08.06
postgres \COPY  (0) 2019.08.06
postgresql csv update  (0) 2019.06.26
postgresql csv import  (0) 2019.06.25
데이터베이스 테이블 복제하기(내용 없이)  (0) 2019.06.25
Posted by 구차니