insert into table1(num,a,b,c)select distinct(num),a,b,c from table2 where num <>'NULL' ÎÒÕâÑùûÓÐÈ¥µôÖØ¸´¼Ç¼,Çë¸ßÊÖ°ïæÊÔÊÔ SQL code: insert into table1(num,a,b,c)select distinct num,a,b,c from table2 where num is not NULL
insert into table1(num,a,b,c)select distinct(num),a,b,c from table2 where num <>'NULL' ÄãÕâÑùÒªÍêÈ«ÖØ¸´²ÅÄÜÈ¥µô ¶øÇÒÄãµÄNULL? NUMÊÇ×Ö·ûÐÍÂð? Èç¹û²»ÊÇÓ¦¸ÃÒªÓÃNUM IN NOT NULL Ö»Òªnum×Ö¶ÎÊÇÍêȫһÑùµÄ,ÎÒ¾ÍÈ¥ÖØ,a,b,c×ֶβ»¹ÜËü.numÊÇ×Ö·ûÐÍ ÄÇÄãA,B,CÏë±£Áôʲô? num,È¥ÖØºó,±£ÁôµÄÄÇÒ»Ìõ¼Ç¼µÄnum,a,b,c×Ö¶ÎÊý¾ÝÔÑù²åÈëtable1ÖÐ
ÕâÑù²»µÃÐÐ.»¹ÊÇûÓÐÈ¥ÖØ,ÄãÕâÑùÊÇÒªÕûÌõÊý¾Ý¶¼Ïàͬ²ÅÄÜÈ¥ÖØ ÄÇÄãÏë±£ÁôÄÄÒ»Ìõѽ,Ëæ±ãÂð? insert into table1(num,a,b,c)select num,a,b,c from