Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

³£ÓõÄWORDPRESS µÄSQLÓï¾ä


ÏÂÃæËùÓеÄSQLÓï¾ä¶¼ÊÇÕë¶Ôǰ׺Ϊwp_µÄ±í£¬Èç¹ûÄãµÄ±íǰ׺²»ÊÇwp_£¬Çë×öÏàÓ¦µÄÐÞ¸Ä
1.¸ü¸Äwordpress°²×°ºÍÊ×Ò³µØÖ·
Èç¹ûÄã¸ü»»ÓòÃû»òÕß°ÑwordpressµÄ°²×°Ä¿Â¼½øÐÐÁ˱䶯¾ÍÐèÒª½øÐÐÐ޸ģ¬
UPDATE wp_options SET option_value = replace(option_value, ‘¾ÉÍøÖ·’, ‘ÐÂÍøÖ·’) WHERE option_name = ‘home’ OR option_name = ’siteurl’;
½ÓÏÂÀ´»¹ÐèÒªÐÞ¸ÄÎÄÕµÄGUID
UPDATE wp_posts SET guid = REPLACE (guid, ‘¾ÉÍøÖ·’, ‘ÐÂÍøÖ·’);
×îºóÌæ»»ÎÄÕÂÄÚÈÝÀïµÄÁ´½ÓµØÖ·
UPDATE wp_posts SET post_content = REPLACE (post_content, ‘¾ÉÍøÖ·’, ‘ÐÂÍøÖ·’);
2.Ö»ÐÞ¸ÄͼƬµØÖ·
Èç¹ûÄã°ÑͼƬ´æ·Åµ½ÆäËûλÖñ£´æ£¬¿ÉÒÔʹÓÃÏÂÃæµÄSQLÓï¾äÅúÁ¿ÐÞ¸ÄͼƬ·¾¶
UPDATE wp_posts SET post_content = REPLACE (post_content, ’src=”¾ÉÍøÖ·’, ’src=”ÐÂÍøÖ·’);
Õâ¸öÒ²ÐèÒª¸ü¸ÄGUID
UPDATE wp_posts SET guid = REPLACE (guid, ‘¾ÉÍøÖ·’, ‘ÐÂÍøÖ·’) WHERE post_type =’attachment’;
3.¸üÐÂPost Meta
Post Meta¾ÍÊÇ×Ô¶¨Òå×Ö¶ÎµÄ±í£¬Ð޸ķ½·¨¸úÇ°ÃæµÄ·½·¨»ù±¾Ò»Ñù
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, ‘¾ÉÍøÖ·’, ‘ÐÂÍøÖ·’);
4.¸ü¸ÄĬÈϹÜÀíÔ±
ÖÚËùÖÜÖªwordpress°²×°ºó×Ô¶¯½¨Á¢Ò»¸öadminµÄÓû§×÷ΪĬÈϹÜÀíÔ±£¬µ«ÊÇÕâÑù»á´æÔÚһЩ°²È«Òþ»¼£¬Í¨¹ýÏÂÃæµÄ·½·¨¸ü¸ÄĬÈϹÜÀíÔ±
UPDATE wp_users SET user_login = ‘еÄÓû§Ãû’ WHERE user_login = ‘admin’;
5.ÖØÖÃwordpressÃÜÂë
ÓÐЩÈËΪÁ˼ÓÇ¿wordpressµÄ°²È«ÐÔÍùÍù»áÉèÖÃÒ»¸ö·Ç³£Ç¿´óµÄÃÜÂ룬ǿ´óµÄ×Ô¼º¶¼»áÍü¼Ç£¬ÕâÖÖÇé¿ö¾Í¿ÉÒÔÓÃÏÂÃæµÄsqlÓï¾äÀ´´¦Àí
UPDATE wp_users SET user_pass = MD5( ‘ÄãµÄÐÂÃÜÂë’ ) WHERE user_login = ‘your-username’;
6.ÅúÁ¿ÐÞ¸ÄwordpressÈÕÖ¾µÄ×÷Õß
Èç¹ûÏë°Ñ×÷ÕßAдµÄËùÓÐÈÕ־ȫ²¿×ªÒƵ½×÷ÕßBÄÇÀÈç¹ûÒ»ÌõÒ»ÌõµÄÈ¥wordpressºǫ́±à¼­ÐÞ¸ÄÕ⽫ÊǷdz£ºÄʱµÄ£¬Ê¹ÓÃÏÂÃæsqlÓï¾ä¿ÉÒÔÈÃÄãÇáËɵIJÙ×÷¡£
ÐÞ¸Ä֮ǰÏÈÒª»ñµÃÓõÄIDºÅ£¬Ê¹ÓÃÏÂÃæµÄSQLÓï¾ä
SELECT ID, display_name from wp_users;
È»ºóʹÓÃÏÂÃæÓï¾äÀ´´¦Àí
UPDATE wp_posts SET post_author = ‘еÄID’ WHERE post_author = &l


Ïà¹ØÎĵµ£º

sqlÖÐÈÕÆÚ¸ñʽ

1 ---ÉϸöÔÂÔ³õµÚÒ»Ìì
  2  select CONVERT(varchar(12) , DATEADD(mm,DATEDIFF(mm,0,dateadd(mm,-1,getdate())),0), 112 )
  3
  4  ---ÉϸöÔÂÔÂÄ©×îºóÒ»Ìì
  5  select CONVERT(varchar(12),dateadd(ms,-3,DATEADD(mm,DATEDIFF(m,0,getdate()),0)), 112 )
  6
  7 ......

SQL 2008 Çå³ýÈÕÖ¾Îļþ

ÓÒ»÷ÒªÇå³ýÈÕÖ¾µÄÊý¾Ý¿â Ñ¡ÔñÊôÐÔ 
  
ÔÚÊý¾Ý¿âÊôÐÔÖÐ Ñ¡ÔñÑ¡Ïî ÔÚÓұ߻ָ´Ä£Ê½ÏÂÀ­Áбí¿òÖÐ Ñ¡Ôñ¼òµ¥ µ¥»÷È·¶¨ ·µ»Ø 
  
ÓÒ»÷ÒªÇå³ýÈÕÖ¾µÄÊý¾Ý¿â Ñ¡ÔñÈÎÎñ-ÊÕËõ-Êý¾Ý¿â µ¥»÷È·¶¨ 
  
Íê³ÉÊÕËõ ÈÕÖ¾Îļþ´óС±äΪ0  ......

SybaseµÄSQL Anywhere for BlackBerry

UltraLite®J£ºBlackBerryÉÏÔËÐеÄСÊý¾Ý¿âºÍͬ²½ÒýÇæ
MobiLink £ºÔËÐÐÔÚ·þÎñÆ÷ÉÏÊý¾Ý¿âͬ²½·þÎñÆ÷£¬¿ÉÒÔ°ÑÉ豸ÉϵÄÊý¾Ýͬ²½µ½ºǫ́µÄ¡£°üº¬ÔÚSQL Anywhere 11ÀïÃæ¡£
SQL Anywhere ÊÇÒµÄÚÁìÏȵÄÒƶ¯ºÍǶÈëʽÊý¾Ý¿â£¬ÌṩÊý¾Ý¹ÜÀíºÍ½»»»¼¼Êõ£¬ÎªÒ»Ïß»·¾³ÖеÄÓ¦ÓóÌÐòÌṩ֧³Ö¡£
SQL Anywhere רΪ²»¾ß±¸ÏÖ³¡ IT Ö§³Ö¡¢Ô ......

ÓÃTSQL°ÑAccessµÄ±íµ¼Èëµ½Ô¶³ÌSql Server

ÓÃTSQL°ÑAccessµÄ±íµ¼Èëµ½Ô¶³ÌSql Server£º
°Ñaccess µÄ.mdbÀït_itemList ±íµÄÊý¾Ý²åÈëµ½Ô¶³ÌSqlServerµÄt_itemL1111111±íÀï¡£
SELECT  top 10 *  INTO  t_itemL1111111 IN [ODBC] 
[ODBC;Driver=SQL Server; UID=jyb;PWD=jyb;Server=10.1.18.49;DataBase=ËùÓкϲ¢;]
    &nb ......

SQL×Ó²éѯʵÀý

×Ó²éѯÊÇÔÚÒ»¸ö²éѯÄڵIJéѯ¡£×Ó²éѯµÄ½á¹û±»DBMSʹÓÃÀ´¾ö¶¨°üº¬Õâ¸ö×Ó²éѯµÄ¸ß¼¶²éѯµÄ½á¹û¡£ÔÚ×Ó²éѯµÄ×î¼òµ¥µÄÐÎʽÖУ¬×Ó²éѯ³ÊÏÖÔÚÁíÒ»ÌõSQLÓï¾äµÄWHERE»òHAVING×Ó¾ÖÄÚ¡£ 
    ÁгöÆäÏúÊÛÄ¿±ê³¬¹ý¸÷¸öÏúÊÛÈËÔ±¶¨¶î×ۺϵÄÏúÊ۵㡣
SELECT CITY
from OFFICES
WHERE TARGET&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ