- 博客(4)
- 收藏
- 关注
转载 Spring aop 注解方式怎么获得执行了目标的某个方法?
private void beforeTransationHandle(JoinPoint point) throws Exception{//拦截的实体类Object target = point.getTarget();//拦截的方法名称String methodName = point.getSignature().getName();//拦截的方法参数Object[
2016-07-19 16:38:15 2651
原创 MySQL Error 1093(HY000) Update不支持子查询的问题
sql: update product set price = (select max(price+1) p from product) where id=1;报错:[Err] 1093 - You can't specify target table 'product' for update in FROM clause解释:MySQL中不允许先select出同一
2016-07-19 14:38:51 3941
转载 mysql prepare语句使用
语法 [sql] view plain copyPREPARE statement_name FROM sql_text /*定义*/ EXECUTE statement_name [USING variable [,variable...]] /*执行预处理语句*/ DEALLOCATE PREPARE statement_name
2016-07-04 17:01:32 932
原创 mysql的几种函数整理
1.concat()函数使用语法:CONCAT(str1,str2,…) 返回结果为连接参数产生的字符串。如有任何一个参数为NULL ,则返回值为 NULL。e.gselect concat(id,name) from user where id=1;查询结果:1user1注:如果name为null,则查询结果为null;2.group_concat()函数
2016-07-04 16:00:47 387
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人