sqlÖÐɾ³ý±íµÄÓï¾äÊÇ
sqlÖÐÓÃÓÚɾ³ý±íµÄÓï¾äÊÇdrop table¡£Ó﷨Ϊdrop table table_name;¸ÃÓï¾ä½«ÓÀÊÀɾ³ýÖ¸¶¨±íµÄ±íºÍÊý¾Ý¡£
SQLÖÐɾ³ý±íµÄÓï¾ä
SQLÖÐÓÃÓÚɾ³ý±íµÄÓï¾äÊÇDROP TABLE¡£
Óï·¨
DROP TABLE table_name;
ÆäÖУº
table_nameÊÇҪɾ³ýµÄ±íÃû¡£
×¢ÖØ
ÔËÐÐDROP TABLEÓï¾äºó£¬±íºÍ±íÖÐËùÓÐÊý¾Ý½«±»ÓÀÊÀɾ³ý¡£
ÈôÊÇҪɾ³ýµÄ±íÖб£´æÍâ¼üÔ¼Êø£¬Ôò±ØÐèÏÈɾ³ýÕâЩÍâ¼üÔ¼Êø¡£
ÈôÊÇҪɾ³ýµÄ±í±»ÆäËû¹¤¾ßÒýÓã¨ÀýÈçÊÓͼ¡¢´æ´¢Àú³Ì£©£¬Ôò±ØÐèÏÈɨ³ýÕâЩÒýÓá£
ʾÀý
ɾ³ýÃûΪ¡°customers¡±µÄ±í£º
DROP TABLE customers;
µÇ¼ºó¸´ÖÆ
Çå¾²×¢ÖØÊÂÏî
ÔÚɾ³ý±í֮ǰ£¬ÇëÈ·±£ÄúÃ÷È·¸Ã±íµÄÖ÷ÒªÐÔÒÔ¼°É¾³ýËüµÄÓ°Ïì¡£ÇëÉóÉ÷ʹÓÃDROP TABLEÓï¾ä£¬²¢Ê¼ÖÕÔÚÖ´ÐÐÇ°±¸·ÝÄúµÄÊý¾Ý¡£
ÒÔÉϾÍÊÇsqlÖÐɾ³ý±íµÄÓï¾äÊǵÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡
ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£