尊龙凯时人生就是搏

mysqlÖÐsourceÏÂÁîµÄ×÷ÓÃ

source ÏÂÁîÔÚ mysql ÖÐÓÃÓÚÖ´ÐÐÍⲿÎļþÖÐµÄ sql Óï¾ä £¬¼ò»¯Êý¾Ý¿âÖÎÀíʹÃü £¬°üÀ¨×Ô¶¯»¯²Ù×÷¡¢¼ò»¯¾ç±¾Ö´ÐкÍÌá¸ß¿Éά»¤ÐÔ¡£

MySQL ÖÐ SOURCE ÏÂÁîµÄ×÷ÓÃ

SOURCE ÏÂÁîÔÚ MySQL ÖÐÓÃÓÚÖ´Ðд洢ÔÚÍⲿÎļþÖеÄһϵÁÐ SQL Óï¾ä¡£ËüÔÊÐíÓû§ÒÔÅúÁ¿·½·¨Ö´Ðо籾 £¬´Ó¶ø¼ò»¯Êý¾Ý¿âÖÎÀíʹÃü¡£

ʹÓÃ˵Ã÷

SOURCE ÏÂÁîµÄÓï·¨ºÜ¼òÆÓ£º

SOURCE <filename>;</filename>

µÇ¼ºó¸´ÖÆ

ÆäÖÐ ÊÇ°üÀ¨ SQL Óï¾äµÄÍⲿÎļþ·¾¶¡£

×÷ÓÃ

SOURCE ÏÂÁîÖ´ÐÐÒÔϲÙ×÷£º

·­¿ªÖ¸¶¨Îļþ¡£

¶ÁÈ¡²¢ÆÊÎöÎļþÖÐµÄ SQL Óï¾ä¡£

Ö´ÐÐÿ¸öÓï¾ä £¬¾ÍÏñÖ±½ÓÔÚ SQL ÌáÐÑ·ûÖÐÊäÈëÒ»Ñù¡£

ÀûÒæ

ʹÓà SOURCE ÏÂÁîÓÐÒÔÏÂÀûÒ棺

×Ô¶¯»¯Ê¹Ãü£ºËüÔÊÐíÓû§×Ô¶¯»¯Í¨³£ÐèÒªÊÖ¶¯Ö´ÐеÄһϵÁвÙ×÷¡£

¼ò»¯µÄ¾ç±¾Ö´ÐУºÓû§¿ÉÒÔ½« SQL ¾ç±¾´æ´¢ÔÚÍⲿÎļþÖÐ £¬²¢ÇáËɵØÔÚÐèҪʱִÐÐËüÃÇ¡£

¿Éά»¤ÐÔ£º½« SQL ¾ç±¾·ÅÔÚÎļþÖÐʹ´úÂë¸üÒ×ÓÚά»¤ºÍ°æ±¾¿ØÖÆ¡£

ʾÀý

¼ÙÉè±£´æÒ»¸öÃûΪ “create_tables.sql” µÄÎļþ £¬ÆäÖаüÀ¨ÒÔÏ SQL Óï¾ä£º

CREATE TABLE users (
    id INT PRIMARY KEY,
    name VARCHAR(255) NOT NULL
);

CREATE TABLE posts (
    id INT PRIMARY KEY,
    title VARCHAR(255) NOT NULL,
    content TEXT NOT NULL
);

µÇ¼ºó¸´ÖÆ

ÒªÖ´ÐÐÕâЩÓï¾ä £¬Óû§¿ÉÒÔÔËÐÐÒÔÏÂÏÂÁ

SOURCE create_tables.sql;

µÇ¼ºó¸´ÖÆ

Õ⽫ÆÊÎö²¢Ö´ÐÐÎļþÖÐµÄ SQL Óï¾ä £¬½¨Éè “users” ºÍ “posts” ±í¡£

ÒÔÉϾÍÊÇmysqlÖÐsourceÏÂÁîµÄ×÷ÓõÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ