2015-02-03 4 views
0
import PySQLPool 
connection = PySQLPool.getNewConnection(username='root', password='123456', host='localhost', db='mydb') 
query = PySQLPool.getNewQuery(connection) 

이 쿼리를 사용하여 일괄 적으로 업데이트를 실행하는 방법은 무엇입니까?PySQLPool을 사용하여 일괄 처리에서 여러 열을 업데이트하는 방법은 무엇입니까?

update info set info="ichi" where msisdn1=XXX and msisdn2=yyyy 
update info set info="ni" where msisdn1=XXX and msisdn2=PPP 

답변

관련 문제