kuroの覚え書き

96の個人的覚え書き

2017-11-10から1日間の記事一覧

リレーション参考

https://www.pythonsheets.com/notes/python-sqlalchemy.htmlhttps://www.codementor.io/sheena/understanding-sqlalchemy-cheat-sheet-du107lawl

SQLiteのINSERTをSQLAlchemyで書くと

#sql>INSERT INTO Exome_sub(SampleName_phenotype, avinput_ref, avinput_alt, variant_id) SELECT SampleName_phenotype, avinput_ref, avinput_alt,variant_id FROM exome;こんな感じにテーブルexomeからテーブルexome_subにSampleName_phenotype, ref, a…