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 구차니

헐.. 이건.. 대공사이거나 새로사세요 할 거 같은데

 

+

2019.06.28

센터전화하니 내방이나 기사출장으로 확인해봐야 한다고

힌지도 아니고 머라고 해야하나? 아무튼.. 힘받는 부분이라 하판 전부 다 갈아야 하는 대공사가 될 느낌인데?

'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글

딸래미와 포켓몬 고 시작  (0) 2019.07.21
잠에서 헤어나질 못함..  (0) 2019.07.20
그늘막 사서 한강에서 놀기  (2) 2019.06.23
먼가 바쁜 하루  (0) 2019.06.22
첫? 간만에? 드라이브  (2) 2019.06.16
Posted by 구차니

바로는 안되는 둣

 

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

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

postgres \COPY  (0) 2019.08.06
union sql  (0) 2019.06.28
postgresql csv import  (0) 2019.06.25
데이터베이스 테이블 복제하기(내용 없이)  (0) 2019.06.25
postgresql insert 속도 올리기  (0) 2019.06.25
Posted by 구차니
Linux2019. 6. 26. 13:41

ftp도 전부 알아서 잘 받아주는 옵션

(하위 디렉토리 까지 전부 다 받아준다)

 

-m--mirrorTurn on options suitable for mirroring. This option turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings. It is currently equivalent to -r -N -l inf --no-remove-listing.

[링크 : https://linux.die.net/man/1/wget]

'Linux' 카테고리의 다른 글

command line xml parse  (0) 2019.07.03
브릿지를 이용하여 복수개의 네트워크 카드를 허브로 사용하기  (0) 2019.07.03
bash argument list is too long  (0) 2019.06.25
sgrep  (0) 2019.06.24
리눅스 캐시 비우기  (0) 2019.06.19
Posted by 구차니

헤더가 들어가는 csv는 옵션이 좀더 붙네?

 

csv 포맷은

"col1","col2"

"13123","faskfjasldf"

 

psql에서 명령어는 아래와 같이 하면 된다.

\COPY persons FROM 'filename.csv' DELIMITER ',' CSV HEADER;

[링크 : http://www.postgresqltutorial.com/import-csv-file-into-posgresql-table/]

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

union sql  (0) 2019.06.28
postgresql csv update  (0) 2019.06.26
데이터베이스 테이블 복제하기(내용 없이)  (0) 2019.06.25
postgresql insert 속도 올리기  (0) 2019.06.25
postgresql ''  (0) 2019.06.25
Posted by 구차니

postgresql에서 테스트 함

내용 복제하지 않고, 형태만 복사하기

create table bbbbbbb as select * from aaaaaaa where 1=2

[링크 : https://dmsrbdi123.tistory.com/12]

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

postgresql csv update  (0) 2019.06.26
postgresql csv import  (0) 2019.06.25
postgresql insert 속도 올리기  (0) 2019.06.25
postgresql ''  (0) 2019.06.25
postgresql truncate table  (0) 2019.06.25
Posted by 구차니
Programming/Java2019. 6. 25. 17:31

간단하게 java에서 XML 을 쓰기 위한 프레임워크, 혹은 라이브러리라고 보면 되려나?

[링크 : https://ko.wikipedia.org/wiki/JAXB]

 

[링크 : https://ukzzang.tistory.com/12]

[링크 : https://coding-start.tistory.com/36]

[링크 : https://howtodoinjava.com/jaxb/read-xml-to-java-object/]

[링크 : http://www.javawebtutor.com/articles/jaxb/jaxb_java_class_from_xsd.php]

'Programming > Java' 카테고리의 다른 글

java oop 개념  (0) 2020.01.15
java cipher  (0) 2019.11.25
jar 실행하기  (0) 2019.01.15
Object.clone()  (2) 2019.01.09
javax print  (0) 2019.01.03
Posted by 구차니

아쉽게도(?) 쿼리나 시스템 보다는

해당 table의 log를 끄는게 더 효율적인듯(트랜잭션 로그 끄는건가?)

 

[링크 : https://gist.github.com/valyala/ae3cbfa4104f1a022a2af9b8656b1131]

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

postgresql csv import  (0) 2019.06.25
데이터베이스 테이블 복제하기(내용 없이)  (0) 2019.06.25
postgresql ''  (0) 2019.06.25
postgresql truncate table  (0) 2019.06.25
libpq  (0) 2019.06.24
Posted by 구차니

 

[링크 : https://www.postgresql.org/docs/9.3/sql-syntax-lexical.html]

 

+

2019.08.24

왜 검색해둔거지? =0=

일단은 " 로는 에러가 나고 ' 로 해야지 되는게 대부분이라.. 일단은 문자열을 위한 문법에서는 '만 허용하는걸로..

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

데이터베이스 테이블 복제하기(내용 없이)  (0) 2019.06.25
postgresql insert 속도 올리기  (0) 2019.06.25
postgresql truncate table  (0) 2019.06.25
libpq  (0) 2019.06.24
xsd to postgresql DDL  (0) 2019.06.18
Posted by 구차니