输入学习代码资料,关于Mybits框架的代码示例。
-- 48 2020-02-20 09:50:35,888 814 [ main] DEBUG om.demo.dao.UserDao.deleteUser - ==>
DELETE
FROM USER
WHERE username='李四2';
------------------------------------------------------------------------------------------------------------------------
-- 49 2020-02-20 09:50:35,606 532 [ main] DEBUG emo.dao.UserDao.findTotalCount - ==>
SELECT COUNT(*)
FROM USER
WHERE username='小二王';
------------------------------------------------------------------------------------------------------------------------
-- 50 2020-02-20 09:50:35,667 593 [ main] DEBUG com.demo.dao.UserDao.findAll - ==>
SELECT *
FROM USER;
------------------------------------------------------------------------------------------------------------------------
-- 51 2020-02-20 09:50:35,708 634 [ main] DEBUG om.demo.dao.UserDao.updateUser - ==>
UPDATE USER SET username='李四2'
WHERE username='张三';
------------------------------------------------------------------------------------------------------------------------
-- 52 2020-02-20 09:50:35,747 673 [ main] DEBUG emo.dao.UserDao.findUserByName - ==>
SELECT *
FROM USER
WHERE username='老王';
------------------------------------------------------------------------------------------------------------------------
-- 53 2020-02-20 09:50:35,786 712 [ main] DEBUG demo.dao.UserDao.findByKeyWord - ==>
SELECT *
FROM USER
WHERE username LIKE '%王%';
------------------------------------------------------------------------------------------------------------------------
-- 54 2020-02-20 09:50:35,828 754 [ main] DEBUG om.demo.dao.UserDao.insertUser - ==>
insert into user(username) values('李四');
------------------------------------------------------------------------------------------------------------------------
-- 55 2020-02-20 09:50:35,888 814 [ main] DEBUG om.demo.dao.UserDao.deleteUser - ==>
DELETE
FROM USER
WHERE username='李四2';
------------------------------------------------------------------------------------------------------------------------