开源地址:https://github.com/NewLifeX/X (求star, 707+)
前文《XCode添删改》给大家展示了添删改数据的基本概况,本文将详解添删改高级功能。...基本添删改
最常用的添删改操作Insert/Update/Delete,实际是根据实体对象生成相应的SQL语句,由IEntityPersistence接口实现。...Insert 生成标准Insert Into语句,根据设置决定是否使用参数化。(参数化设置)
?..., 0, null, null, null, null, 0, null, 0, 0, 0, 0, null, null, null, null, 0, 0, 0, null, null, null,...null, 0, null, null, null);Select last_insert_rowid() newid
Insert把所有字段加入到SQL中,即使是没有设置数值的字段,也给予默认值。