'잡동사니'에 해당되는 글 14037건
- 2019.08.14 내일은 광복절..
- 2019.08.13 postgres sequence - auto increment
- 2019.08.12 node.js regex
- 2019.08.12 xpath xsi
- 2019.08.12 postgresql 변수 타입
- 2019.08.12 awk NR, NF
- 2019.08.11 수영장 딸린 펜션 4
- 2019.08.10 펜션 놀러옴
- 2019.08.09 postgres 문자열 타입
- 2019.08.08 postgresql - 테이블 형상 보기
자.. 어떻게 설계할까...
[링크 : https://akaisun.tistory.com/52]
+
2019.08.15
당연하지만(?) schema 식별자가 public이 아니면 넣어주어야 한다.
[링크 : https://www.postgresdba.com/bbs/board.php?bo_table=B10&wr_id=28]
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| sql 테이블에 검색한 값을 넣을때 고정값도 넣기 (0) | 2019.08.16 |
|---|---|
| pgadmin 초기 시작시 브라우저 선택 (0) | 2019.08.15 |
| postgresql 변수 타입 (0) | 2019.08.12 |
| postgres 문자열 타입 (0) | 2019.08.09 |
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
별다른 모듈 끌어오지 않아도 기본으로
new RegExp()를 통해 생성이 가능하다.
아래는 파일명에서 YYYY-MM 으로 된 녀석을 검색하는 예제
음.. 근데 딱 그 부분만 빼내는 법은 없나?
| > var regex = new RegExp('[0-9]{4}-[0-9]{2}') undefined > regex /[0-9]{4}-[0-9]{2}/ > var fn = "ClinVarFullRelease_2019-07.xml" undefined > fn.match(regex); [ '2019-07', index: 19, input: 'ClinVarFullRelease_2019-07.xml' ] |
[링크 : https://stackoverflow.com/questions/5675315/node-js-regular-expression-to-get-from-and-to]
+
regex.exec(fn)
[링크 : https://opentutorials.org/course/50/43]
+
()로 묶으면 완전히 매칭되는 부분만 결과를 돌려준다.
| > var regex = new RegExp('([0-9]{4}-[0-9]{2})') undefined > fn.match(regex); [ '2019-07', '2019-07', index: 19, input: 'ClinVarFullRelease_2019-07.xml' ] |
'Programming > node.js' 카테고리의 다른 글
| node.js xpath 지원함수 목록 (0) | 2019.09.10 |
|---|---|
| node.js csv2json (0) | 2019.08.21 |
| node.js xpath 모듈 (0) | 2019.08.08 |
| xpath text() (0) | 2019.08.07 |
| node.js readline과 r/w stream (0) | 2019.07.31 |
xml namespace나 schema 관련된 녀석을 조회하려는데
어떻게 해야 할지 감이 안와서(evaluation fail막 뜨고..) 찾다가 발견
name이 아니라 name()이 포인트
| //*[name()='xsi:noNamespaceSchemaLocation'] |
[링크 : https://stackoverflow.com/questions/4817112/xpath-query-for-xml-node-with-colon-in-node-name]
xsi는 Xml Schema Instance의 약자인 것으로 보인다.
| 인스턴스 문서가 참조할 때는 두 가지 특별한 애트리뷰트를 사용하는데, xsi:schemaLocation과 xsi:noNamespaceSchemaLocation이 그것이다. 관습적으로 "xsi"는 "http://www.w3.org/2001/XMLSchema-instance"를 가리키는 접두어로 쓰인다.) |
'Programming > xml' 카테고리의 다른 글
| xsd minOccurs, maxOccurs (0) | 2019.09.11 |
|---|---|
| xpath count() (0) | 2019.09.09 |
| xpath concat (0) | 2019.08.08 |
| xpath syntax - attribute 검색 및 특정값 얻기 (0) | 2019.08.08 |
| xpath.. (0) | 2019.08.01 |
bigint(int8) 64bit
interger(int, int4) 32bit
double precision(float8 = 64bit)
real(float4 = 32bit)
[링크 : https://www.postgresql.org/docs/9.2/datatype.html]
JSON 변수 타입 접근 연산자
-> (JSON object or array)
->> (stringigy?)
tablename->'json_key'->'json_key'
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| pgadmin 초기 시작시 브라우저 선택 (0) | 2019.08.15 |
|---|---|
| postgres sequence - auto increment (0) | 2019.08.13 |
| postgres 문자열 타입 (0) | 2019.08.09 |
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
| psql 테이블 목록보기 (0) | 2019.08.08 |
NR(number of Record?)
NF(number of Field?)
[링크 : https://ko.wikibooks.org/wiki/예제로_배우는_AWK/필드와_레코드]
The variable NF is set to the total number of fields in the input record.
'Linux' 카테고리의 다른 글
| linux 수동 trim (0) | 2019.08.16 |
|---|---|
| jq - json in linux command line (0) | 2019.08.16 |
| smart trip temperature? (0) | 2019.08.05 |
| uniq (0) | 2019.07.30 |
| xz.. 느려!!! (0) | 2019.07.26 |
자연촌, 여주참숯마을 왔음
수영장도 꽤나 여려개 다양하게 있고
실내 1개
실외 5개?
일단은 실외는 전부 간이형 수영장이지만 나름 괜찮은 듯
유틸리티 쓰니 text로 생성하고
기존에 다른 사람이 생성한걸 보니 character varying으로 많이 해놔서 타입을 보니.
text = varchar (무제한)
char = char (고정 길이)
varchar = character varying (길이 제한)
타입자체가 성능에 영향을 미치지는 않는다는데.. 어느게 나으려나 고민할 필요도 없는건가..
| Different from other database systems, in PostgreSQL, there is no performance difference among three character types. In most situation, you should use text or varchar, and varchar(n) if you want PostgreSQL to check for the length limit. |
[링크 : http://www.postgresqltutorial.com/postgresql-char-varchar-text/]
[링크 : https://codeday.me/ko/qa/20190305/2011.html]
'프로그램 사용 > postgreSQL' 카테고리의 다른 글
| postgres sequence - auto increment (0) | 2019.08.13 |
|---|---|
| postgresql 변수 타입 (0) | 2019.08.12 |
| postgresql - 테이블 형상 보기 (0) | 2019.08.08 |
| psql 테이블 목록보기 (0) | 2019.08.08 |
| pgfutter (0) | 2019.08.06 |
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 |
