由于这是文字字符串,因此最好在此处使用绑定参数(使用来说明
text()):
from sqlalchemy import textconnection.execute( text("select * from table where " "string like :string limit 1"), string="_stringStart%")
由于这是文字字符串,因此最好在此处使用绑定参数(使用来说明
text()):
from sqlalchemy import textconnection.execute( text("select * from table where " "string like :string limit 1"), string="_stringStart%")