摘要:
1.使用root账户登录mysql mysql -uroot -ppassword 2.进入mysql数据库 mysql> use mysql 3.限制用户权限 GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER 阅读全文
摘要:
java中Long的比较要用equals而不要用== 当Long为常量且常量值小于一个字节时,两个Long指向同一个常量内容; Long userId=12L; Long authorId=12L; System.out.println(userId==authorId);//true 当Long为 阅读全文