SQLAlchemy - INSERT OR REPLACE equivalent

前端 未结 4 535
再見小時候
再見小時候 2021-01-04 09:37

does anybody know what is the equivalent to SQL \"INSERT OR REPLACE\" clause in SQLAlchemy and its SQL expression language?

Many thanks -- honzas

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 09:53

    You can use OR REPLACE as a so-called prefix in your SQLAlchemy Insert -- the documentation for how to place OR REPLACE between INSERT and INTO in your SQL statement is here

提交回复
热议问题