ÎÒÃÇÔÚ²åÈëÊý¾Ýµ½Êý¾Ý¿âÖеÄʱºò£¬³£ÓõÄÓï¾äÈçÏ£º
INSERT INTO table1(id, name, address) VALUES(1, ygl, 'beijing')¡ª¡ªÊÊÓÃÓÚT-sqlºÍPL/SQL£»
SELECT id, name, address INTO table2 FROM table1¡ª¡ª×Ô¶¯´´½¨table2£¬T-sqlÓ÷¨£»
INSERT INTO table2(id, name, address) SELECT id, name, address FROM table1
ÕâÀï¼òµ¥ËµÒ»ÏµÚÈý¾ä£¬ÓÉÓÚ¿ÉÒÔÖ¸¶¨²åÈëµ½talbe2ÖеÄÁУ¬ÒÔ¼°¿ÉÒÔͨ¹ýÏà¶Ô½Ï¸´ÔӵIJéѯÓï¾ä½øÐÐÊý¾ÝÔ´»ñÈ¡£¬¿ÉÄÜʹÓÃÆðÀ´»á¸ü¼ÓµÄÁé»îһЩ£¬µ«ÎÒÃÇÒ²±ØÐë×¢Ò⣬ÎÒÃÇÔÚÖ¸¶¨Ä¿±ê±íµÄÁÐʱ£¬Ò»¶¨Òª½«ËùÓзǿÕÁж¼ÌîÉÏ£¬·ñÔò½«ÎÞ·¨½øÐÐÊý¾Ý²åÈ룬»¹ÓÐÒ»µã±È½ÏÈÝÒ׳ö´íµÄµØ·½¾ÍÊÇ£¬µ±ÎÒÃÇд³ÉÈçϼòд¸ñʽ£º
INSERT INTO table2 SELECT id, name, address FROM table1
´Ëʱ£¬ÎÒÃÇÈç¹ûÂÔµôÁËÄ¿±ê±íµÄÁеĻ°£¬ÔòĬÈÏ»á¶ÔÄ¿±ê±íµÄÈ«²¿ÁнøÐÐÊý¾Ý²åÈ룬ÇÒSELECTºóÃæµÄÁеÄ˳Ðò ±ØÐëºÍÄ¿±ê±íÖеÄÁеĶ¨Òå˳ÐòÍêÈ«Ò»Ö ²ÅÄÜÍê³ÉÕýÈ·µÄÊý¾Ý²åÈ룬ÕâÊÇÒ»¸öºÜÈÝÒ×±»ºöÂԵĵط½£¬ÖµµÃ×¢Òâ¡£