- 动态查询.getStart.getBy.getAllBy
- 支持 get10start2
- 支持 getBy
- 支持 getAllBy
动态查询.getStart.getBy.getAllBy
支持 get10start2
# SELECT `test`.* FROM `test` LIMIT 0,10
Db::table('test')->
get10();
# SELECT `test`.* FROM `test` LIMIT 3,10
Db::table('test')->
get10start3();
支持 getBy
# SELECT `test`.* FROM `test` WHERE `test`.`user_name` = '1111' LIMIT 1
Db::table('test')->
getByUserName('1111');
# SELECT `test`.* FROM `test` WHERE `test`.`UserName` = '1111' LIMIT 1
Db::table('test')->
getByUserName_('1111');
支持 getAllBy
# SELECT `test`.* FROM `test` WHERE `test`.`user_name` = '1111' AND `test`.`sex` = '222'
Db::table('test')->
getAllByUserNameAndSex('1111', '222');
# SELECT `test`.* FROM `test` WHERE `test`.`UserName` = '1111' AND `test`.`Sex` = '222'
Db::table('test')->
getAllByUserNameAndSex_('1111', '222');