有用户user1下的table1
user2下的table2在user1下查询 table1 和table2的 内容select user2.table2.a,table1.a
from user2.table2 table1这样写 有什么不对?
应该怎么样写呢?
user2下的table2在user1下查询 table1 和table2的 内容select user2.table2.a,table1.a
from user2.table2 table1这样写 有什么不对?
应该怎么样写呢?
from user2.table2 table1
这句是 user2.table2 命了别名,如果想查两个表
from user2.table2, table1 ,中间用逗号分隔
所以应该改为
select * from user2.table2;