2024-04-25 20:23:38 发布
网友
我知道django行查询-很好。 但是,有没有可能在Django ORM中实现呢?在
例如SQL:
INSERT INTO table (extra_ident) VALUES (id);
在Django中,不需要使用“insert”来创建新条目,只需使用Table.objects.create(extra_ident=id)来插入表中。在
Table.objects.create(extra_ident=id)
在Django中,不需要使用“insert”来创建新条目,只需使用
Table.objects.create(extra_ident=id)
来插入表中。在相关问题 更多 >
编程相关推荐