查询在一个相关的表中不存在的数据,如用户表(user)和用户资料表(user_profile),通过id关联,要查出user表中在user_profile中不存在的记录: select count(*) from?user left join?user_profile On user.id=user_profile.id where user_profile.id is null 复杂条件: select count(*) from?user left join?user_profile On user.id=user_profile.id where user.level1 or user_profile.money10000
今天用mm.mysql-2.0.4-bin.jar连接mysql,报错如下: Communication failure during handshake. Is there a server running on localhost:3306? 我的Mysql数据库的版本:5.0.18。使用mm.mysql-2.0.4-bin.jar,。出现了上面的问题。mysql服务是开的,有可能是驱动不行了,上mysql下载了个对应5.0的版本:mysql-connector-java-5....