摘要:
方法一: public class threadDemo { public static void main(String[] args) { final Object o=new Object(); final char[] nums="1234567".toCharArray(); final 阅读全文
摘要:
##方案1 mysql> set @a:=0; mysql> select @a:=@a+1,name,bb from aa; ##此处需要两次提交并且再次查询 不会从1开始 ##方案2 mysql> select @b:=@b+1 as no ,name,bb from aa,(select @b 阅读全文
摘要:
分区类型:range list hash key create table prange(id int primary key)engine=innodb partition by range(id)(partition p0 values less than(10),partition p1 va 阅读全文
摘要:
创建用户:create user 'user1'@'%' identified by 'howhy@123'; 删除用户:drop user 'user1'@'%' ; 查看当前用户权限:show grants; 查看用户权限:show grants for 'user1'@'%'; 给用户授权:g 阅读全文