2017年4月9日
摘要: Dao中的查询语句写的应该为数据库表格对应的Entity类名而非直接的数据库表名字。 阅读全文
posted @ 2017-04-09 11:44 XMY_Lydia 阅读(168) 评论(0) 推荐(0)
  2016年11月4日
摘要: select sum(column1),sum(column2) from table1 where XXXX; 阅读全文
posted @ 2016-11-04 21:42 XMY_Lydia 阅读(1621) 评论(0) 推荐(0)
  2016年10月20日
摘要: <input id="sale_income" class="form-control" placeholder="默认到小数点后两位" onkeyup="this.value=this.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')" onaft 阅读全文
posted @ 2016-10-20 19:54 XMY_Lydia 阅读(1057) 评论(0) 推荐(0)
  2016年10月12日
摘要: 用于mysql当表格已经建好之后再向它添加外键: alter table table1 add foreign key (id) references table2(id); 阅读全文
posted @ 2016-10-12 19:57 XMY_Lydia 阅读(140) 评论(0) 推荐(0)