有如下SQL查询
有如下SQL查询:
select a.user_name from data_user a,sys_user_type b where b.user_type=1001 and a.user_type=b.user_type
如果这个SQL查询用
select user_name from data_user where user_type=(select user_type from sys_user_type where user_type=1001)
请问:这两种写法那一种的效率更高?为什么?
谢谢.