判断条件是否满足再执行sql的方法 select * from tbl_b2c_user where id=5 and exists(select user_id from tbl_b2c_user where id=1)