mysqlÉÏÏÞÎÊÌâ
ÇëÎÊһϴó¼ÒÓÐûÓÐÈËÅäÖùýmysqlµÄiniµÄÅäÖÃÎļþ£¬ÏÖÔÚÎÒÓÐÒ»¸öÎÊÌâ¾ÍÊÇ.ÏÖÔÚ±íÖÐ35ÍòÌõµÄÊý¾Ý²éѯ³öÀ´ÊÇûÓÐÎÊÌâµÄ£¬µ«Êǵ±Êý¾Ý¿â´ïµ½°ÙÍòÒÔÉÏÊý¾Ý¾Í²éѯ²»³öÀ´ÁË£¬£¨Ç°ÌáÊÇͬÑùµÄÌõ¼þÀ´×öÕâÁ½´ÎÊý¾Ý²éѯ²Ù×÷¡££©
select * from table where field like '%±±¾©%';
ÎÒÏÖÔÚÊý¾Ý¿âµÄĬÈÏÅäÖÃÊÇʹÓÃmy.iniĬÈϵÄÅäÖã¬ÊDz»ÊÇÏñÕâÑùµÄ°ÙÍòÒÔÉϵÄÊý¾Ý²éѯµÃÓÃmy-large.iniÀ´×öÒ»ÏÂÅäÖÃѽ£¿£¿ÏÈлÁË¡£
SQL code:
show create table tb1_name;
ALTER TABLE tbl_name MAX_ROWS=xxx AVG_ROW_LENGTH=yyy;
Õ⻹Ҫ¿´Ä㱨µÄ´íÊÇʲô´í
SQL code:
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
ÊÔ×Ŷ¼µ÷´óÒ»µã
my-large.ini µÄÈ·ÊÇÖ÷ÒªÕë¶Ô´óÐÍÊý¾ÝÁ¿µÄ£¬Äã¿ÉÒÔ»ùÓÚÕâ¸öµÄ»ù´¡Éϸù¾Ýʵ¼Ê½øÐÐÐÞ¸Ä
µ±Êý¾Ý¿â´ïµ½°ÙÍòÒÔÉÏÊý¾Ý¾Í²éѯ²»³öÀ´ÁË
------------------------------------
ÄãÕâ¸ö²é²»³öÀ´ÊÇʲô¸ÅÄîÄØ£¿
ÊDzéѯÔÚÒ»Ö±ÔËÐУ¬»¹ÊÇÔËÐÐÍêºóû½á¹ûÏÔʾ£¿
35ÍòµÄÊý¾Ý¿ÉÒÔ²éѯ³öÀ´Êý¾ÝûÓÐÎÊÌ⣬µ«Êǵ±Êý¾ÝÁ¿´ïµ½°ÙÍòÒÔºóÖ»Äܲéѯ³öÒ»Ìõ¼Ç¼³öÀ´£¬ÎÒÓÿͻ§¶Ë¹¤¾ßÖ´
Ïà¹ØÎÊ´ð£º
Winform+MySQL×öÏîÄ¿£¬ÔÚ×¢ÖØÐÔÄܵÄÇé¿öÏ£¬ÎÒ¸ÃÈçºÎÈ¥Íê³ÉÕâÀàÐ͵ÄÏîÄ¿ÄØ£¡
Çë¸÷λ¸øÒÔÌáʾ¡£
ÄãÕâ¸ö·¶Î§Ì«¹ãÁË£¬ÎÒ˵2µãÖØÒªµÄ°É
1.WINFORM³ÌÐòÊǵ¥¶ÀÔËÐеÄCS³ÌÐò£¬ºÍBS²»Í¬£¬BSµÄѹÁ¦Ê¼ÖÕ¶¼ÔÚSERVERÉϵģ¬¶ÔC ......
SELECT a.tguildname ,SUM(a.ct) + if (SUM(b.ct) IS NULL ,0,SUM(b.ct)) from (
SELECT tg.tguildname,c.cid, (
cf.fbb + cf.fgjbb + cf.fjybb + cf.fqb + cf.fgjqb + cf.fjyqb + cf.fqib + cf. ......
¼ÙÈçÊý¾Ý¿âÖÐÓиötest±í£¬±íÖÐÓÐid£¬Name£¬num£¬¼Ç¼ʱ¼ä
idΪ×ÔÔö³¤Ö÷¼ü£¬nameÊÇÃû×Ö£¬num±íʾÆäÊýÁ¿
1 nike 100 ϵͳʱ¼ä
2 nike 300 &n ......
ÎÒÏëÒª¸üÐÂij¸ö±íÅÅÐòºó¿¿Ç°µÄÊý¾Ý£¬ÓÚÊÇдÁËÒ»¸öÓï·¨£º
update dcproduct set pOrder=pOrder+2 order by pOrder desc,id desc limit 6£»Õâ¸öÊÇ¿ÉÒÔÔËÐеģ¬½á¹ûÊǸüÐÂÁËÇ°ÁùÌõ¼Ç¼¡£
ºóÀ´·¢ÏÖ©Á˸öÌõ¼þÒªÁ¬± ......