gpt4 book ai didi

sql-server - 是否有一个 set identity_insert on equivalent for SQLite?

转载 作者:IT王子 更新时间:2023-10-29 06:20:07 30 4
gpt4 key购买 nike

在TSQL中有

SET IDENTITY_INSERT ON;

在 SQLite 中是否有等价的功能?

最佳答案

SQLite 总是允许在主键列中插入一个值;仅当插入的值为 NULL(显式或省略)时才使用自动生成的值。

有关详细信息,请参阅 the documentation .

关于sql-server - 是否有一个 set identity_insert on equivalent for SQLite?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13273403/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com