ÈçÌ⣬
ÎÒ×Ô¼ºÓÅ»¯ÁËÏ£¬µ«Êǽá¹û»¹ÊÇÓë¿Í»§µÄÒªÇóÓÐÒ»¶¨µÄ²î¾à¡£
±íµÄÊý¾ÝÁ¿±È½Ï´ó£¬Ïà¹ØËÑË÷×ֶεÄË÷Òý¶¼½¨ÁË¡£´ó¼Ò°ïæÓÅ»¯ÏÂSQLÓï¾ä¡£
ÒÔÏÂÊÇ×îÔʼµÄSQL£º
SQL code:
select fileid,contentid,filepath,filetype,transferstatus,usagecode,codeformat,coderate,nettype,playurl,destpath
from (select z.fileid, z.contentid,z.filepath,z.filetype,z.transferstatus,z.usagecode,z.codeformat,
z.coderate, z.nettype,z.playurl,z.destpath
from (select t.fileid,t.contentid,t.filepath,t.filetype,
1 transferstatus,2 usagecode,t.codeformat,10 coderate ,t.nettype,t.playurl, null destpath
from t_cms_mtv_file@dblink_cms t, t_cms_mtv@dblink_cms a
where t.filetype is null
and t.codeformat = '7'
and t.coderate = '30'
and t.nettype = '3'
and t.contentid = a.contentid
and a.type = 2
) z
where z.contentid not in (select b.contentid
from (select t.contentid
from t_cms_mtv_file@dblink_cms t, t_cms_mtv@dblink_cms a
¿ÉÄÜÒòΪ¹¤×÷µÄÔÒò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......