1.突然在想,既然数据库中有很多数据库,不同的database,在使用数据库时候,要指定使用的哪个数据库,用use database命令,指定特定数据库。
2.那java代码中,直接jdbc,直接statment执行了sql语句操作,并没有指定操控的数据库啊,它是怎么执行的?
:肯定是早就指定好了的啊,否则没法执行的,在jdbc connenct的url,书写的时候,你已经写了用哪个具体的数据库名嘛,jdbc url里面已经写了使用哪个数据库