'2019/08'에 해당되는 글 66건

  1. 2019.08.27 join
  2. 2019.08.27 postgresql ROW_COUNT
  3. 2019.08.27 ubuntu 18.04 fsck 예약(?)
  4. 2019.08.26 sql select if or case
  5. 2019.08.26 order by group by
  6. 2019.08.26 postgresql 정규 표현식 검색
  7. 2019.08.24 카테고리 500개가 많을줄 알았는데... 2
  8. 2019.08.24 분노조절 실패모드
  9. 2019.08.23 SPICE
  10. 2019.08.23 refseq protein

+

[링크 : https://www.w3schools.com/sql/sql_join.asp]

 

끄앙.. 다시 보려니 머리가 안돌아간다

 

left join

테이블 두개를 조인할때 왼쪽의 것과, 두개의 교집합 까지만 허용

[링크 : https://makand.tistory.com/entry/SQL-LEFT-JOIN-구문]

 

right join

두개 중에 오른쪽 것과, 두개의 교집합 허용이라는데.. 굳이 left, right할 이유가 있나 싶네..

걍 테이블 순서 바꾸어서 하세요~ 하면 되지 않았을려나?

[링크 : https://makand.tistory.com/entry/SQL-RIGHT-JOIN-구문]

 

inner join

교집합만

[링크 : https://makand.tistory.com/entry/SQL-INNER-JOIN-구문]

 

left outer join - 조건이 맞지 않더라도 왼쪽 테이블 전체 내용이 나옴

right outer join

full outer join(full join) 조건이 아닌 컬럼도 포함(왜?)

[링크 : https://limkydev.tistory.com/144]

 

(일종의.. 전체 목록 꺼내기에 가까운 느낌?)

[링크 : https://thebook.io/006696/part01/ch06/03/04/]

 

+

문득 full outer join 이랑 select distinct union 이랑 같은거 아닌가 싶긴한데..

찾아보니 union은 vertical이고 join은 horizontal이라고 하는데 무슨 의미인지 감이 잘 안오네..

full outer join vs union distinct

[링크 : https://www.quora.com/What-is-the-difference-between-full-outer-join-and-union-in-SQL]

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

postgresql generate_series()  (0) 2019.08.28
where 1=1  (4) 2019.08.27
postgresql ROW_COUNT  (0) 2019.08.27
sql select if or case  (0) 2019.08.26
order by group by  (0) 2019.08.26
Posted by 구차니

select 로 몇개 줄이 나왔는지는 못하는것 같고(perform 해서 어떻게 받는게 가능해 보이긴 하지만)

select into나

update, insert문 등에 의해 영향을 받은(affected) 것에 대해서 출력이 되는 듯

 

GET DIAGNOSTICS integer_var = ROW_COUNT;

[링크 : https://www.postgresql.org/docs/9.0/plpgsql-statements.html]

 

변수 선언

DO $$ 
DECLARE
   varname integer := 0;
BEGIN 
   get diagnostics age = row_count;
   raise notice '%', age;
END $$;

[링크 : http://www.postgresqltutorial.com/plpgsql-variables/]

[링크 : http://www.gisdeveloper.co.kr/?p=4573]

 

+

pg 9.3 이후 부터 지원되는 듯

Allow PL/pgSQL to access the number of rows processed by COPY (Pavel Stehule)

A COPY executed in a PL/pgSQL function now updates the value retrieved by GET DIAGNOSTICS x = ROW_COUNT.

[링크 : https://stackoverflow.com/questions/16610449/get-the-count-of-rows-from-a-copy-command]

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

where 1=1  (4) 2019.08.27
join  (0) 2019.08.27
sql select if or case  (0) 2019.08.26
order by group by  (0) 2019.08.26
postgresql 정규 표현식 검색  (0) 2019.08.26
Posted by 구차니
Linux/Ubuntu2019. 8. 27. 14:07

이라고 하긴 제목이 이상한데..

일단은 18.04에서는 기본적으로 fsck를 실행하도록 예약(?)이 되어있지 않는 것으로 보인다.

 

max. mount count가 -1이라 자동으로 하진 않는데..

$ sudo tune2fs -l /dev/sda1 | grep -i count
Inode count:              14655488
Block count:              58607360
Reserved block count:     2930368
Mount count:              53
Maximum mount count:      -1

[링크 : https://linuxconfig.org/how-to-force-fsck-to-check-filesystem-after-system-reboot-on-linux]

 

애가 상태 이상해지면

sudo touch /forcefsck 

해주는수 밖에 없나?

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 18.04 wayland와 ubuntu session  (0) 2019.08.28
ubuntu virtual desktop  (0) 2019.08.28
ubuntu postgresql 실행  (0) 2019.07.30
bash-completion  (0) 2019.07.09
우분투 리눅스에 카카오톡 깔기  (2) 2019.07.09
Posted by 구차니

표준 sql 에서는 if는 존재하지 않고 mysql에서만 전용 명령어로 제공하는 듯

그래서 그 대신에 case - when - then - end 구조로 처리하게 된다.

 

[링크 : https://devbox.tistory.com/entry/DBMS-CASEWHENTHEN]

 

CASE WHEN condition THEN result
     [WHEN ...]
     [ELSE result]
END

[링크 : https://www.postgresql.org/docs/9.1/functions-conditional.html]

 

 

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

join  (0) 2019.08.27
postgresql ROW_COUNT  (0) 2019.08.27
order by group by  (0) 2019.08.26
postgresql 정규 표현식 검색  (0) 2019.08.26
sql ||과 concat()  (0) 2019.08.22
Posted by 구차니

order by로 할 걸 group by로 하는걸 고민하고 있었나..

그러니 안되지.. ㅠㅠ

 

[링크 : https://mingggu.tistory.com/83]

[링크 : https://gangnam-americano.tistory.com/25]

[링크 : https://www.popit.kr/마케터를-위한-sql-3-group-by-살펴보기/]

 

 

 

 

 

 

 

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

postgresql ROW_COUNT  (0) 2019.08.27
sql select if or case  (0) 2019.08.26
postgresql 정규 표현식 검색  (0) 2019.08.26
sql ||과 concat()  (0) 2019.08.22
pgadmin 에서 table 생성 SQL문 얻기  (0) 2019.08.20
Posted by 구차니

 

 

-- Gets zero or any spaces numbers and text characters before one R
SELECT * FROM table WHERE column ~ '^[\s\w]*[R]{1}$'

-- Gets zero or any spaces numbers and text characters after one R
SELECT * FROM table WHERE column ~ '^[R]{1}[\s\w]*$'

[링크 : https://stackoverflow.com/questions/46978821/postgres-regex-begins-with-and-ends-with]

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

sql select if or case  (0) 2019.08.26
order by group by  (0) 2019.08.26
sql ||과 concat()  (0) 2019.08.22
pgadmin 에서 table 생성 SQL문 얻기  (0) 2019.08.20
sql substring  (0) 2019.08.16
Posted by 구차니
개소리 왈왈/블로그2019. 8. 24. 22:15

헐.. 이렇게 갑자기 부족하게 느껴질줄이야..

 

'개소리 왈왈 > 블로그' 카테고리의 다른 글

적을게 없다!!!  (0) 2019.10.23
해피빈 기부  (2) 2019.09.23
항상 그렇지만 피곤하고 지치고  (0) 2019.08.02
도메인 또 1년 연장  (0) 2019.06.03
저작권 협상(?) 메일  (3) 2019.03.25
Posted by 구차니

첫애 때문에 항상 분노 만땅 모드 -_-

머가 문제일까..

 

항상 책들은 아이란 그런것이다 라고 하고

부모가 수용하기만을 원하지 무언가 해소할 방법을 제시하진 않는다.

 

도대체가 멀 어떻게 해야 하는걸까..

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

피자헛 오늘의 피자 맛있네  (0) 2019.09.07
딸래미 안과 다녀왔는데  (2) 2019.08.29
오늘도 키즈카페  (2) 2019.08.18
키즈카페  (0) 2019.08.17
수영장 딸린 펜션  (4) 2019.08.11
Posted by 구차니

SPICE(Software Process Improvement and Capability dEtermination)

ISO15504, SPICE

 

[링크 : https://rakuraku.tistory.com/93]

[링크 : http://www.jidum.com/jidums/view.do?jidumId=292]

 

ISO/IEC 33000번대 번호를 부여받아 33001~33099 까지 표준 작업

[링크 : http://www.abni.net/bbs/content.php?co_id=consulting_spice]

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

data at rest (저장데이터)  (0) 2019.10.28
sql join 집합별 쿼리(차집합, 교집합 등등)  (0) 2019.10.22
overlay FS  (0) 2019.07.18
bbs and oprom  (0) 2019.06.05
CVE CWE CPE CVSS SCAP  (0) 2019.06.04
Posted by 구차니
회사일2019. 8. 23. 16:07

p.= 라고 명기된게 있어서 오타이거나 잘못 처리된건줄 알았는데 의미가 있는 표기였군..

 

Miscellaneous
unknown effect
p.?       - protein has not been analysed, an effect is expected but difficult to predict
p.(=)    - protein has not been analysed, but no change is expected
p.=      - protein has not been analysed, RNA was, but no change is expected
no protein
changes which affect the promoter of a gene, the transcription initiation site (cap site), the translation initiation site, etc. may affect the amount of protein produced;
p.0       - no protein can be detected (experimental data should be available)
p.0?     - probably no protein is produced

[링크 : https://www.hgvs.org/mutnomen/recs-prot.html]

[링크 : https://varnomen.hgvs.org/bg-material/refseq/]

'회사일' 카테고리의 다른 글

postgresql regexp_matches 로 HGVS g. c. p. 잡아내기  (0) 2020.01.01
compound heterozygosity  (0) 2019.12.21
tpmC?  (0) 2019.08.19
OLTP  (0) 2019.08.19
bam sam  (0) 2019.07.26
Posted by 구차니