Slick - 此 DBMS 仅允许从 INSERT 返回单个 AutoInc 列
Slick - This DBMS allows only a single AutoInc column to be returned from an INSERT
在 Slick 中,一些 examples 抛出此异常。
slick.SlickException: This DBMS allows only a single column to be returned from an INSERT, and that column must be an AutoInc column.
哪些 DBMS 支持此功能?
Postgres 和 Oracle 支持 returning
多列。
Mysql 不支持它,但 slick 可能会通过 last_insert_id()
调用来模拟它以自动增加 ID。
不确定是否有其他人支持它。
(他们应该将其添加到文档中..)
在 Slick 中,一些 examples 抛出此异常。
slick.SlickException: This DBMS allows only a single column to be returned from an INSERT, and that column must be an AutoInc column.
哪些 DBMS 支持此功能?
Postgres 和 Oracle 支持 returning
多列。
Mysql 不支持它,但 slick 可能会通过 last_insert_id()
调用来模拟它以自动增加 ID。
不确定是否有其他人支持它。 (他们应该将其添加到文档中..)