일단, Query를 실행하는 방법은 크게 두 가지를 쓸 수 있겠다. runQuery()를 사용하는 방법과, runInteraction()을 사용하는 방법이다. 주어진 table에서 10개의 row를 가져오고자 한다고 했을때, 1) runQuery() 사용하기 def getCount(): return dbpool.runQuery("select * from test") def printResult(l): if l: result = l[0][0] print l[0][0], " records" else: print "no rows fetched" dbpool = adbapi.ConnectionPool('MySQLdb', db='abcd', user='abcd', passwd='abcd') getCount().a..
linux에서 vi를 쓰다보면, 어디에 설치되었는지 모르는 웃지 못할 상황이 생기곤 한다. type/ which 명령어를 써도 명확히 알기 어렵다. 이럴 때!! vi를 실행시킨 상태에서 확인이 가능하다는 사실! :!echo $VIMRUNTIME
택시요금 : taxi fare 버스요금 : bus fare 지하철 요금 : subway fare 수도요금 : water rate 전기세 : electric charge 헷갈릴 때는 charge만 써도 된다~~~
Strong I feel very strongly that ~ I'm certain that ~ i'm sure that ~ Neutral I think ~ In my opinion ~ From my point of view, ~ Tentative It seems to me that ~ I would say that ~
historic과 historical 차이 닮아보이는 두 단어의 차이는? historic well-known or important in history: a historic building; historic occasions notable, renowned, famous, famed, memorable historic은 역사적인, 역사적으로 의미있는, 중요한의 의미를 나타낸다. historical of, pertaining to, treating, or characteristic of history or past events: historical records; historical research. based on or reconstructed from an event, custom, style, etc..
It's on the house. 가게에서 지불하므로, (그것에 대해서) 너는 돈을 낼 필요가 없다. Examples It's on me(my company). It's my treat.
Twsited Matrix Framework 상에서 DB에 접속하려면, 해당 DB의 python 모듈이 설치되어 있어야 한다. 예) mysql용 : mySQl for python 모듈 (sourceforge.net에서 다운받는다) 1. 필요한 라이브러리 import from twisted.enterprise import adbapi from twisted.internet import reactor 2. DB에 접속하기 dbpool = adbapi.ConnectionPool('dbmodule', 'mydb', 'id', 'password')의 형식으로 기록한다. 따라서, 다음의 두 방법과 같이 접속 정보를 기록할 수 있다. 1) 방법 #1 dbpool = adbapi.ConnectionPool('MySQL..
mysql> select * into outfile '파일명' fields terminated by '구분자' from 테이블명
여러 의사들을 각각 영어로 어떻게 부를까? Orthopedist a doctor who treats bone problems = 정형외과 의사 Pediatrician a doctor who treats children only = 소아과 의사 General Practitioner a doctor who treats the entire family and who does not specialize in only one area = 일반의 Ophthalmologist a doctor who treats eye problems = 안과 의사 Internist a doctor who specializes in internal medicine = 내과 의사 Obstetrician a doctor who cares..
sore throat a painful or sensitive condition of the throat exaggerated by swallowing or talking, usually caused by bacteria or viruses. nasal congestion stuffy nose runny nose watery mucus discharge from the nose as in the common cold chill a sensation of coldness, often accompanied by shivering and pallor(paleness) of the skin. migraine a severe recurring headache, usually affecting only one si..
be allergic to: ~에 알러지가 있는 commonly used when you have some kind of allergies contagious: 전염의, 옮을 수 있는 a disease is capable of being transmitted by infection or easily spreads as from one person to another
의학 용어가 나오니 문장이 완전 어려워 보인다. Gastroenteritis is a mild inflammation of the intestines. (위염은 위/장에 생기는 약한 염증이다)