select distinct prog.emplid, ' ',prog.ADMIT_TERM, 'N', ' ', ' ', '1'
from ps_adm_appl_prog prog, ps_s_sr_i006_tmp tmp
where prog.ADMIT_TERM='1310' and prog.prog_action='ADMT' and prog.emplid<>tmp.emplid
SQL语句如上,这样选出来的全部都是同一条数据。。。orz
é£æ ·ä¸è¡çï¼ç»ä½ 解éä¸å§
åå¦Aéæ1ï¼2ï¼3
Béæ2ï¼3ï¼4
é£ä¹Aéç1å°±ä¸è¯´äº
å¯æ¯2ï¼3
2è·Béç4ä¸ç¸ç
3åçï¼æ以æåè¿æ¯æAéå ¨é¨éåºæ¥äº
æ以
select distinct emplid, ' ',prog.ADMIT_TERM, 'N', ' ', ' ', '1' from ps_adm_appl_progè¿æ ·è¯è¯