-2
在我的python腳本中使用SQLalchemy引擎API時,我想從表中選擇幾列,並在其他列上使用where子句。我的查詢如下所示。我已成功連接引擎。我知道我做了一些小的失誤,請大家幫忙在我的Python腳本中使用SQLALCHEMY
connection = engine.connect()
data=connection.execute("SELECT ID FROM Table1 WHERE Column1 =='India')
connection.close()
我不認爲你需要雙等號查詢 –
在發佈代碼時有失蹤「。 – ib11