springboot运行查询命令在本地的数据库可以查询,在云端的不可以

springboot运行查询命令在本地的数据库可以查询,在云端的不可以

查询的sql语句是select sname,tname,player_total from player,player_total where player.snum=player_total.snum and mname='大联赛' order by player_total desc

img

img

img

img

img

但是运行select*是可以的,如下:

img

要么就是你远端的数据压根就没有,
要么就是你远端没连上,出现异常被你捕获了,默认返回了空数据。

查询为空,没有报错信息,你在本地数据库的版本和云端数据库的版本以及登陆密码要保持一致才行