sql笔记:JOIN操作

SELECT user_static_db.birthday,user_static_db.gender,user_static_db.create_time ,user_volatile_db.* from user_static_db left join
			user_volatile_db on user_volatile_db.uid = user_static_db.uid where email='0' and password='0';
上述是JOIN操作添加条件。可以发现先执行Where操作。然后才是连接。也就是左边的表先执行where,再与右边的表连接。

你可能感兴趣的:(sql,mysql)