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

MySQLºÍSQL×ֶνضÌ©¶´

תÔØ×Ô£ºhttp://www.neatstudio.com/index-4.shtml
ÎÄÕÂÀ´×Ô¼Åįhacker,http://hi.baidu.com/isbx/blog/item
/08ef48547ef1ad58574e00bf.html:
µ±Ç°µÄWeb¿ª·¢ÕßÖп϶¨Óв»ÉÙÈËûÓÐ×¢Òâµ½×÷ÕßËùÌáµ½µÄÕâÁ½¸öÎÊÌâµÄ¡£
µÚÒ»¸öÎÊÌâÊÇÕâÑùµÄ£¬MySQLĬÈÏÓÐÒ»¸öÅäÖòÎÊý
max_packet_size£¬Õâ¸ö²ÎÊýÊÇÓÃÓÚÏÞÖÆMySQL¿Í»§¶ËºÍMySQL·þÎñÆ÷¶ËÊý¾ÝͨÐŵÄÊý¾Ý°ü´óС£¬MySQLµÄĬÈÏÅäÖÃÊÇ1MB¡£Èç¹û¿Í

»§¶Ë·¢Ë͵ÄÊý¾Ý³¬¹ýÁË1MB£¬ÔòMySQL·þÎñÆ÷¶Ë»áºöÂÔµôÕâ¸öÇëÇóÊý¾Ý¡£×÷Õß½ÓÏÂÀ´¾ÙÁËÁ½¸öÀûÓÃÕâ¸öȱÏݵÄÀý×Ó£¬µÚÒ»¸öÊÇÀûÓ󬳤Êý¾ÝÀ´Ê¹MySQLµÄ
ÈÕÖ¾¼Ç¼³ÌÐòʧЧ£¬µÚ¶þ¸öÊÇÔÚPHP+MySQLµÄ»·¾³Ï£¬PHPµÄSessionÇåÀí³ÌÐò»áÓÉÓÚÒ»´Î·¢Ë͵ÄÇåÀísessionÊý¾ÝµÄÇëÇóÊý¾Ý°ü³¬¹ý
max_packet_sizeµÄÏÞÖÆ£¬¶øµ¼ÖÂÇåÀísessionʧ°Ü¡£
¶øʵ¼ÊÉÏ£¬ÓÉÓںܶàPHP+MySQLµÄ³ÌÐò¶¼»áÔËÐÐÓû§ÉÏ´«¸½¼þÖ®À࣬¶øÒ»°ãµÄPHP+MySQLµÄÉÏ´«¸½¼þÏÞÖƶ¼ÊÇ´óÓÚ1MBµÄ£¬ËùÒÔPHPµÄ
³ÌÐò¿ª·¢ÈËÔ±Ò»°ãÊÇ»áÈ¥ÐÞ¸Ämax_packet_sizeµÄֵΪ´óÓÚ1MB¡£Õâ¾Í¸øÎÒÃǵÄ©¶´ÀûÓôøÀ´ÁËÒ»¶¨µÄÂé·³£¬±Ï¾¹ÔÚµ±Ç°µÄÍøÂç×´¿öÏ£¬¹¹Ôì
1MB¶àµÄÊý¾ÝÈ¥ÉÏ´«»¹ÊÇ¿ÉÒÔÈÌÊܵġ£µ«ÊÇÌ«´óµÄÊý¾ÝÁ¿¾Í±È½Ï¿¼ÑéÎÒÃǵÄÄÍÐÄÁË£¬ºÇºÇ¡£
µÚ¶þ¸öÎÊÌâ¾Í±È½ÏÑÏÖØÁË£¬MySQL¶ÔÓÚ³¬¹ý×ֶγ¤¶ÈµÄÊý¾Ý²åÈë²Ù×÷»á½øÐÐĬÈϵÄ×Ö·û´®½Ø¶Ì¡£ÀýÈçÒ»¸ö×ֶζ¨ÒåµÄ³¤¶ÈΪ10£¬Èç¹û²åÈëµÄ×Ö·û´®³¤¶È
³¬¹ý10£¬MySQL»á½«³¤¶È³¬¹ý10µÄ²¿·Ö×Ö·û´®×Ô¶¯ÉáÈ¥ºó²åÈëµ½Êý¾Ý±íÖС£Ä¬ÈÏÅäÖÃÌõ¼þÏ£¬MySQL»á²úÉúÒ»¸ö¾¯¸æÐÅÏ¢£¬µ«ÊÇÕâ¸ö¾¯¸æÐÅÏ¢²»»á±»
WebÓ¦ÓóÌÐò²¶»ñµ½¡£ËùÒÔ£¬´Ó±íÃæÉÏÀ´¿´£¬³¬³¤Êý¾ÝÒ²ÊÇ¿ÉÒÔ“³É¹¦”²åÈëÊý¾Ý±íµÄ¡£×÷ÕßÔÚÏÂÃæ¾ÙµÄÕâ¸öÀý×ӾͺÜÓдú±íÐÔÁË£¬Ê×ÏÈÊÇÒ»¸ö³¡¾°¼ÙÉ裺
The application is a forum where new users can register
The administrator’s name is known e.g. ‘admin’
MySQL is used in the default mode
There is no application restriction on the length of new user
names
The database column username is limited to 16 characters
Óû§Èç¹û³¢ÊÔ×¢²áÒ»¸öÓû§ÃûΪadminµÄÓû§£¬»áÓÉÓÚWebÓ¦ÓóÌÐòÖеÄisAlreadyRegisteredº¯ÊýµÄУÑé¶ø×¢²áʧ°Ü¡£
SELECT * from user WHERE username='admin'
µ«Èç¹ûÓû§Ê¹ÓÃÓû§Ãû’admin           x’À´×¢²á£¨×¢ÒâadminºÍxÖ®¼äÓÐ11¸ö¿Õ¸ñ£©£¬Ôò×¢²áÁ÷³Ì»áÊÇÕâÑùµÄ£º
i


Ïà¹ØÎĵµ£º

¼¸¸öSQL ServerÓï¾äºÍ´æ´¢¹ý³Ì

-- ======================================================
--ÁгöSQL SERVER ËùÓÐ±í£¬×Ö¶ÎÃû£¬Ö÷¼ü£¬ÀàÐÍ£¬³¤¶È£¬Ð¡ÊýλÊýµÈÐÅÏ¢
--ÔÚ²éѯ·ÖÎöÆ÷ÀïÔËÐм´¿É,¿ÉÒÔÉú³ÉÒ»¸ö±í£¬µ¼³öµ½EXCELÖÐ
-- ======================================================
SELECT
       (case when a. ......

ORACLE SQL ÓÅ»¯µÄÈô¸É·½·¨

Ò»¡¢ ÏȽéÉÜÒ»ÏÂoracleµÄSGA£ºÊý¾Ý¿âµÄϵͳȫ¾ÖÇø£¬SGAÖ÷ÒªÓÉÈý²¿·Ö¹¹³É£º¹²Ïí³Ø¡¢Êý¾Ý»º³åÇø¡¢ÈÕÖ¾»º³åÇø¡£ 1¡¢¹²Ïí³ØÓÖÓÉÁ½²¿·Ö¹¹³É£º¹²ÏíSQLÇøºÍÊý¾Ý×ֵ仺³åÇø¡£¹²ÏíSQLÇøרÃÅ´æ·ÅÓû§SQLÃüÁoracleʹÓÃ×î½ü×îÉÙʹÓõÈÓÅÏȼ¶Ëã·¨À´¸üи²¸Ç£»Êý¾Ý×ֵ仺³åÇø£¨library cache£©´æ·ÅÊý¾Ý¿âÔËÐеĶ¯Ì¬ÐÅÏ¢¡£Êý¾Ý¿âÔËÐÐÒ» ......

ÈçºÎÐÞ¸Ämysql rootÃÜÂ룿

[תÌûÍøÖ·]http://java-2007.javaeye.com/blog/622269
Íü¼ÇMySQL(ºÍPHP´îÅäÖ®×î¼Ñ×éºÏ) ROOTÃÜÂëÊÇÔÚMySQL(ºÍPHP´îÅäÖ®×î¼Ñ×éºÏ)ʹÓÃÖкܳ£¼ûµÄÎÊÌ⣬¿ÉÊÇÓкܶàÅóÓѲ¢²»»áÖØÖÃROOTÃÜÂ룬Äǽпడ£¬ÎÒÓÐÉîÓид¥£¬ÌØд´ËÎÄÕÂÓë´ó¼Ò½»Á÷£º
1¡¢±à¼­MySQL(ºÍPHP´îÅäÖ®×î¼Ñ×éºÏ)ÅäÖÃÎļþ£º
windows»·¾³ÖУº%MySQL(ºÍPHP´îÅäÖ ......

WinodwsÏÂIIS/Apache+PHP+MySQLµÄ°²×°ÅäÖÃ

ÎÒд¹ýµÄ½Ì³Ì²»¶à£¬¶øÇҴ󲿷ֶ¼ÊÇÀ´Ô´ÓÚ±ðÈ˵Ľ̳̣¬²»¹ý£¬ÕâÀïËù½éÉܵģ¬¶¼ÊÇÈÚÈëÎÒËù×ܽáµÄ¾­Ñ飮£­£­ÒýÑÔ
¡¡¡¡
¡¡¡¡PHPµÄÖ´ÐÐЧÂÊÊÇÓÐÄ¿¹²¶ÃµÄ£¬ÕâÒ²ÊÇÎÒϲ»¶ËüµÄÔ­ÒòÖ®Ò»£¬ºÍËü³ÆΪ¾øÃî´îµµµÄMysqlÒÔ¼°ApacheÏëÈںϣ¬²»Äܲ»¾ªÌ¾ÆäЧÂÊÁË¡£PHP¸üÐÂÒ²ºÜ¿ì£¬ÕâÀïÁоÙÁËÄ¿Ç°×îа汾PHP4.3.2RC4£¨¼¸ºõûÓÐBUGÁË£¬¹À¼ÆÐ´Í ......

SQLÓï¾ä¹Ø¼ü×ÖUNIONС֪ʶ

   ½ñÌìÔÚÓÃUNION½øÐн«Á½¸ö²éѯ½áºÏʱ£¬·¢ÏÖ¼ÓÁËtextÀàÐ͵Ä×ֶνøÈ¥¾Í±¨´íÁË£¬´íÎóÐÅÏ¢ÈçÏ£º
²»ÄÜÒÔ DISTINCT ·½Ê½Ñ¡Ôñ text¡¢ntext »ò image Êý¾ÝÀàÐÍ¡£
     ¾­¹ý·­ÔÄ×ÊÁϺó²ÅÖªµÀ£¬Ô­ÒòÔÚÓÚÈç´Ë²Ù×÷ ÎÞ·¨¶ÔtextÀàÐÍÅжÏÊÇ·ñÖظ´£¬ËùÒÔÒªÔÚUNIONºó¼Ó¸öALL¹Ø¼ü×Ö£¬ÈçÏ£º
select top ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ