mysqlÖÐɾ³ýÊý¾Ý¿âµÄÏÂÁî
mysql ÖÐɾ³ýÊý¾Ý¿âµÄÏÂÁîÊÇ drop database£¬Ó﷨Ϊ£ºdrop database database_name; ÆäÓ÷¨ÊÇ£ºÅþÁ¬Ð§ÀÍÆ÷£¬Ö¸¶¨ database_name ºóÔËÐиÃÏÂÁî¼´¿Éɾ³ýÊý¾Ý¿â¡£
MySQL ÖÐɾ³ýÊý¾Ý¿âµÄÏÂÁî
ɾ³ý MySQL Êý¾Ý¿âµÄÏÂÁîÊÇ DROP DATABASE¡£½ÓÏÂÀ´ÏêϸÏÈÈÝÆäÓï·¨ºÍÓ÷¨£º
Óï·¨£º
DROP DATABASE database_name;
µÇ¼ºó¸´ÖÆ
²ÎÊý£º
database_name£ºÒªÉ¾³ýµÄÊý¾Ý¿âµÄÃû³Æ¡£
Ó÷¨£º
ҪʹÓà DROP DATABASE ÏÂÁîɾ³ýÒ»¸öÊý¾Ý¿â£¬Çë°´ÒÔÏ°취²Ù×÷£º
ÅþÁ¬µ½ MySQL ЧÀÍÆ÷¡£
ÔËÐÐ DROP DATABASE ÏÂÁָ¶¨ÒªÉ¾³ýµÄÊý¾Ý¿âµÄÃû³Æ¡£
ÀýÈ磺
DROP DATABASE my_database;
µÇ¼ºó¸´ÖÆ
´ËÏÂÁɾ³ýÃûΪ my_database µÄÊý¾Ý¿â¡£
×¢ÖØÊÂÏ
ʹÓà DROP DATABASE ÏÂÁîʱ£¬ÇëÎñ±ØÉóÉ÷£¬ÓÉÓÚËü½«ÓÀÊÀɾ³ýÊý¾Ý¿â¼°ÆäËùÓÐÄÚÈÝ¡£
ÔÚɾ³ýÊý¾Ý¿â֮ǰ£¬ÇëÈ·±£Äú²»ÔÙÐèÒªËü¡£
ÈôÊÇÊý¾Ý¿âÖаüÀ¨ÈÎºÎ±í£¬ÔòÔÚɾ³ýÊý¾Ý¿â֮ǰÐèÒªÏÈɾ³ýÕâЩ±í¡£¿ÉÒÔʹÓà DROP TABLE ÏÂÁîɾ³ý±í¡£
Ö»ÓоßÓÐ DROP ȨÏÞµÄÓû§²Å»ªÉ¾³ýÊý¾Ý¿â¡£
ÒÔÉϾÍÊÇmysqlÖÐɾ³ýÊý¾Ý¿âµÄÏÂÁîµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡