student表是以system登入后建的,然后授权select给创建的用户user1,grant select on student to user1,提示了授权成功,但当use1去执行select * from student的时候提示不存在表或视图,请问这是为什么?

解决方案 »

  1.   

    select * from system.student;
      

  2.   

    不同的用户查询其表,是要带上他的用户名的,用user执行select * from student,他会在user下查找这个表,自然没有,需要带上更具体的,system.student,跨库查询也是同理的
      

  3.   

    很感谢,但是想请问下为什么是system.student,我借的书上没有加system就能直接选取数据?