mysql에서는 desc tablename으로 봤는데

postgresql에서는 아래처럼 보면 된다.

\d+ tablename

[링크 : https://stackoverflow.com/questions/109325/postgresql-describe-table]

 

+

위 링크에서 보면 oracle은

describe tablename;

인듯

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

postgresql 변수 타입  (0) 2019.08.12
postgres 문자열 타입  (0) 2019.08.09
psql 테이블 목록보기  (0) 2019.08.08
pgfutter  (0) 2019.08.06
postgres \COPY  (0) 2019.08.06
Posted by 구차니

워.. \dt나 \d보다 확실하게 나오네

 

select * from pg_tables;

[링크 : https://enjoyprogramming.tistory.com/7]

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

postgres 문자열 타입  (0) 2019.08.09
postgresql - 테이블 형상 보기  (0) 2019.08.08
pgfutter  (0) 2019.08.06
postgres \COPY  (0) 2019.08.06
union sql  (0) 2019.06.28
Posted by 구차니
Programming/xml2019. 8. 8. 11:09

음.. 시도해보고 수정필요

해당 항목을 검색해서 그 결과를 붙여주는건 아니라 실망..

 

[링크 : https://stackoverflow.com/questions/21996965/concatenate-multiple-node-values-in-xpath]

[링크 : https://stackoverflow.com/questions/3398871/concatenate-multiple-attribute-values]

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

xpath count()  (0) 2019.09.09
xpath xsi  (0) 2019.08.12
xpath syntax - attribute 검색 및 특정값 얻기  (0) 2019.08.08
xpath..  (0) 2019.08.01
xmllint string()  (0) 2019.07.25
Posted by 구차니
Programming/node.js2019. 8. 8. 11:04

이것저것 테스트 하다가 가장 무난한게 select1 인것 같고

검색이 되지 않으면 탭이나 콤마를

검색이 되었으나 값의 저장위치에 따라 value와 firstChild.data로 저장이 된다.

firstChild.data는 element 자체의 내용(content라고 해야하나 머라고 해야하나?)이 저장되는 장소이다.

 

var result_attr = xpath.select1(ele, doc);
                    // var result_ele = xpath.select(ele, doc);

                    if (result_attr != undefined) {
                        if (result_attr.value != undefined) {
                            // record += (result_attr.firstChild + delimiter)
                            record += ('"' + result_attr.value + '"' + delimiter)
                            // console.log(result_attr.value);
                        }
                        else {
                            record += ('"' + result_attr.firstChild.data + '"' + delimiter)
                            // console.log(result_attr.firstChild.data);
                        }
                    }
                    else {
                        record += delimiter;
                    }

 

 

 

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

node.js csv2json  (0) 2019.08.21
node.js regex  (0) 2019.08.12
xpath text()  (0) 2019.08.07
node.js readline과 r/w stream  (0) 2019.07.31
node.js xpath select() select1()  (0) 2019.07.25
Posted by 구차니
Programming/xml2019. 8. 8. 11:02

특정 위치중에 attribute가 DB이고 값이 Gene일 경우 해당 Xref element의 ID attribute의 값을 받는 예제

(말이 어렵다 -ㅁ-)

 

/ClinVarSet/ReferenceClinVarAssertion/MeasureSet/Measure/MeasureRelationship/XRef[@DB='Gene']/@ID

[링크 : https://www.w3schools.com/xml/xpath_syntax.asp]

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

xpath xsi  (0) 2019.08.12
xpath concat  (0) 2019.08.08
xpath..  (0) 2019.08.01
xmllint string()  (0) 2019.07.25
libxml2 - xmlNodeDump()  (0) 2019.07.09
Posted by 구차니
Microsoft/vscode2019. 8. 8. 10:16

visual studio 하듯 하면 되네?

f9로 break point 설정하고

f5로 디버깅 모드 시작

 

launch.json 에서 아래와 같이 args를 추가하고 array 해주면 인자가 입력된다.

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}\\test.js",
            "args": ["input.txt","output.txt"]
        }
    ]
}

 

[링크 : https://nodejs.org/ko/docs/guides/debugging-getting-started/]

[링크 : https://nerv2000.tistory.com/105]

[링크 : https://code.visualstudio.com/docs/nodejs/nodejs-debugging]

[링크 : https://stackoverflow.com/questions/29968919/how-to-start-nodejs-with-custom-params-from-vscode]

Posted by 구차니
Programming/android2019. 8. 8. 09:35

failed to find target with hash string 'android-27'

요런 에러가 발생하면 구버전 SDK를 쓰고 있는데 현재 시스템에 해당 버전의 SDK가 없어서 발생하는 에러라고 한다.

[링크 : https://elecs.tistory.com/157]

 

File-Settings - Appearance - System Setting - Android SDK 에서 에러에 맞는 SDK를 설치후 리빌드

[링크 : https://hunit.tistory.com/365]

 

error: resource android:attr/dialogCornerRadius not found.

[링크 : https://blog.soobinpark.com/149]

 

이건 도움을 별로 못 받았고

버전을 보니 0.7.6이 현재 깨져서 받지 못하게 된 상태라 0.7.5로 일단 변경해서 빌드는 완료

[링크 : https://jitpack.io/#mancj/MaterialSearchBar]

Posted by 구차니
Programming/node.js2019. 8. 7. 23:15

<element>text</element>

에서 text만 꺼내주는 함수(?)

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

node.js regex  (0) 2019.08.12
node.js xpath 모듈  (0) 2019.08.08
node.js readline과 r/w stream  (0) 2019.07.31
node.js xpath select() select1()  (0) 2019.07.25
node.js xpath apidoc  (0) 2019.07.25
Posted by 구차니
Programming/web 관련2019. 8. 7. 10:43

맨날 json beautifier 찾아서 온라인으로 했는데

오프라인으로 바로 처리되니 편하네

 

[링크 : https://chrome.google.com/webstore/search/json%20view?hl=ko]

'Programming > web 관련' 카테고리의 다른 글

web gl on chrome  (0) 2021.12.14
markdown 문법 - 체크박스  (0) 2020.10.15
resizable table cell  (0) 2019.06.17
web framework  (0) 2019.06.05
ECDHE?  (0) 2019.04.26
Posted by 구차니

import schema에 다가 csv 파일등을 넣어주는 녀석

go로 짰고 받아보니.. elf 실행파일인데...

 

테스트로 해보니까 걍 테이블을 text로 생성해 버린다.

그래도 최대 자릿수 찾을줄 알았는데 그게 아니라 아쉽네

[링크 : https://github.com/lukasmartinelli/pgfutter]

 

+

csv가 아닌 tsv의 경우 아래처럼 사용자 delimiter에 탭을 지정해주면 된다.

pgfutter csv -d $'\t' traffic_violations.csv

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

postgresql - 테이블 형상 보기  (0) 2019.08.08
psql 테이블 목록보기  (0) 2019.08.08
postgres \COPY  (0) 2019.08.06
union sql  (0) 2019.06.28
postgresql csv update  (0) 2019.06.26
Posted by 구차니