近所のお城。
近所のコニャック。
11日間過ごした両親ちを出発、昨日はCognacへ。
今日はラスコー。

本周四下午从山西坐大巴回北京,途中经过了石家庄的高速服务区,见到了一条令人爆汗的翻译
mysql> load data local infile "path/to/import.csv" into table table_name fields terminated by ',';
mysql> select * from table_name into outfile "path/to/export.csv" fields terminated by ',';
PythonでMySQLに接続。
>>> import MySQLdb
>>> connect = MySQLdb.connect(db="pytest", host="127.0.0.1", port=3306, user="root", passwd="mypassword")
>>> cur = con.cursor()
>>> cur.execute('select * from test )
>>> rows = cursor.fetchall()
>>> for row in rows:
>>> print row[0]
>>> print row[1]
>>> cur.close()
>>> connect.close()
日本語をselectするときは
>>> cursor.execute("set character set utf8")
>>> cursor.execute('select * from test )
をしないと文字化けする。
for line in open('test.txt').readlines():
print unicode(line, 'shift-jis', 'ignore').encode('utf-8')