sql 技巧

1、想把一张表的 某个字段或多个字段 的 所有数据 复制到另外一张表里  insert into 表名(字段) select (字段) from 表名

2、from Users u , IN(u.role) r where r.id<>33 and lower(u.name) like :name    ------------对关联对象的属性进行过滤,写法 

原文地址:https://www.cnblogs.com/xdcr/p/6004067.html