时间类型数据
SimpleDateFormat si = new SimpleDateFormat("yyyy-MM-dd"); Date p1 = si.parse("2009-1-10"); Date p2 = si.parse("2010-1-10"); SqlSession sqlSession = MybatisUtil.getsqlSession(); BookDao dao = sqlSession.getMapper(BookDao.class); Book b = new Book(null, "fdfdfdfd3", "哈哈哈", "hhh", "郑州", p1, "第一版", p2, "3次", "333", 12369, 99, "六本", "原木纸", "看看", 100.0, 30.0, null, "编辑推荐", "很好", "暑期", "10", "voug", 30, 200, 94); dao.addBook(b); sqlSession.commit(); sqlSession.close();
相关推荐
九天银河技术 2020-11-11
zhangjie 2020-11-11
Crazyshark 2020-11-13
步知道 2020-10-27
tufeiax 2020-09-03
李轮清 2020-09-15
85251846 2020-09-14
wangpaiyonghu 2020-06-28
jackalwb 2020-06-14
yhljxy 2020-06-14
myveer 2020-06-14
xiaobaif 2020-06-14
klarclm 2020-06-13
songshijiazuaa 2020-06-13
TMD咯MySQL 2020-06-12
archive 2020-06-12
清风徐来水波不兴 2020-06-09
CallMeV 2020-06-01