Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何重命名MySQL查询结果_Mysql - Fatal编程技术网

如何重命名MySQL查询结果

如何重命名MySQL查询结果,mysql,Mysql,如何重命名查询的输出? 我有一个疑问: select * from (generalprofile left join applicant on applicant.profileID = generalprofile.profileID) as A inner join (generalprofile left join applicant on applicant.profileID = generalprofile.profileID) as B on

如何重命名查询的输出? 我有一个疑问:

   select * 
   from (generalprofile left join applicant on applicant.profileID = 
   generalprofile.profileID) as A 
   inner join (generalprofile left join applicant on applicant.profileID = 
   generalprofile.profileID) as B on A.applicationID = B.applicationID ;
我需要内部连接两个查询的结果。
因为似乎不起作用

您没有以正确的方式构建select表 在中,必须放置有效的select。。不仅是表名和联接

  select * 
   from ( select * form generalprofile 
          left join applicant on applicant.profileID = 
   generalprofile.profileID) A 
   inner join (select * from generalprofile 
          left join applicant on applicant.profileID = 
   generalprofile.profileID) B on A.applicationID = B.applicationID ;