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

MYSQL °üº¬ÊÂÎï,²ÎÊý,ÓαêµÈµÄ×ÛºÏʹÓÃÀý×Ó,Ç°ÕÂ(1)

  1.Ê×ÏȵöÔmysql ÀïÃæµÄ²ÎÊý½øÐнéÉÜÏÂ:
     procedure--in:ÊäÈë²ÎÊý,outÊä³ö²ÎÊý,inoutÕâ¸ö¾Í²»ÓÃ˵ÁË,´ó¸ÅÒ²²Âµ½ÁË
                       declare:ÉùÃ÷±äÁ¿.¼ÇÖ÷,ËùÓÐÉùÃ÷±ØÐëÔÚ·ÇÉùÃ÷Óï¾äÇ°Íê³É,·ñÔò»á±¨´í
   2.mysql ³£Óú¯Êý½éÉÜ:
       *.concat('s','a',5) ¿ÉÒÔÄÇÊýֵת»»³É×Ö·û´®,Ò²¿ÉÒÔ½øÐÐ×Ö·û´®µÄºÏ²¢
            Èç:set str=concat('asd','ad',56)  ----> str='asdad56'
                declare num in;set num=156;set @ste=concat('',num)|(num);-->@str='156'
                mysql> select CONCAT('My', NULL, 'QL');
¡¡¡¡            -> NULL
      *.ASCII(str),·µ»Ø×Ö·û´®strµÄµÚÒ»¸ö×Ö·ûµÄASCIIÖµ(strÊÇ¿Õ´®Ê±·µ»Ø0)
            Èç:mysql> select ASCII('2');-> 50
      *.CONV(N,from_base,to_base),¶ÔÊý×ÖN½øÖÆת»»,²¢×ª»»Îª×Ö´®·µ»Ø(ÈκβÎÊýΪNULLʱ·µ»ØNULL,½øÖÆ·¶Î§Îª2-36ÖÆ,             µ±to_baseÊǸºÊýʱN×÷ΪÓзûºÅÊý·ñÔò×÷ÎÞ·ûºÅÊý,CONVÒÔ64λµã¾«¶È¹¤×÷)
           Èç:mysql> select CONV("a",16,2);
¡¡¡¡          -> '1010'
                mysql> select CONV(-17,10,-18);
¡¡¡¡          -> '-H'
                mysql> select CONV(10+"10"+'1


Ïà¹ØÎĵµ£º

MySQLÐÔÄÜÓÅ»¯TIPS

Ò». Æô¶¯²ÎÊýÓÅ»¯
ÐÞ¸Ä my.cnf (»òÕßmy.ini)£¬¼ÓÈë/ÐÞ¸ÄÒÔϼ¸ÐÐ
#É趨»º´æµÄÁ¬½ÓÊý,½ÚÊ¡Á¬½ÓʱµÄ¿ªÏú
back_log = 64
#½ûÓÃÎļþϵͳÍⲿËø
external-locking = 0
#½ûÓÃBDB,Èç¹ûÄãȷʵ²»ÐèÒªµÄ»°,innodbÒ²ÊÇÈç´Ë
skip-bdb
#Ë÷Òý»º³å,Èç¹ûÊÇרÓõÄÊý¾Ý¿â·þÎñÆ÷,¿ÉÒÔÉèÖøߴï·þÎñÆ÷ÄÚ´æµÄÒ»°ë,Èç¹û²»ÊÇרÓõÄ,
#»¹ÊÇÉ ......

Tomcat6 mysql jdbcÁ¬½Ó³ØµÄÅäÖÃ

 ÅªÁËÒ»ÍíÉÏ£¬²éÁËn¶àÎÄÕ£¬³¢ÊÔÁËn¶à¸´Ôӵķ½·¨£¬×îºóÖÕÓÚÔÚһƪÎÄÕÂÖÐÕÒµ½ÁËÒ»¸ö³¬¼òµ¥µÄ·½·¨£¬ÕæÊÇ̤ÆÆÌúЬÎÞÃÙ´¦°¡£¡²»Óð´Õչܷ¨µÄ×ö·¨£¬Ö»Òª°´ÕÕÏÂÎĵķ½·¨±£¹ÜÄã¿ÉÒԳɹ¦ÅäÖÃtomcatµÄÁ¬½Ó³Ø¡£
½«tomcat/conf/context.xmlÎļþÖÃΪÒÔÏÂÄÚÈÝ¡£
<Context reloadable="true">
    < ......

Myeclipse7.5Á¬½ÓMySQLÊý¾Ý¿â

Èý²½×ߣº
1.ÔÚwindows-->perspective-->DB browser
 
2.Create a database connection profile
 
  Çý¶¯ÏÂÔØ£º http://dev.mysql.com/downloads/
  ÎļþÃû£ºmysql-connector-java-5.0.4-bin
3.Open a database connection
 
Á´½Óʱ¿ÉÄܳöÏÖ´íÎó£¬ÄÇôÇë³¢ÊÔÈçÏ·½·¨£º
Err ......

±È½Ï²»´íµÄmysql²Ù×÷Àà

<?php
/*
 * by:lenush
 * qicq:707207845
 * email:lenus-h@163.com
 * site:www.hackthiswebsite.cn
 * that's all
 *
 */ 
class mysql{
 
 private $db_host;  //Êý¾Ý¿âÖ÷»ú
 private $db_user;  //Êý¾Ý¿âÓû§Ãû
 private $d ......

MySQLµÄÍâ¼üºÍ²ÎÕÕÍêÕûÐÔ

Ò»¡¢²ÎÕÕÍêÕûÐÔ(Referential integrity)ºÍÍâ¼ü(foreign key)
²ÎÕÕÍêÕûÐÔ(Referential integrity)ÊÇÓÃÓÚÔ¼¶¨Á½¸ö¹Øϵ֮¼äµÄÁªÏµ£¬ÀíÂÛÉϹ涨£ºÈôMÊǹØϵSÖеÄÒ»ÊôÐÔ×飬ÇÒMÊÇÁíÒ»¹ØϵZµÄÖ÷¹Ø¼ü×Ö£¬Ôò³ÆMΪ¹ØϵS¶ÔÓ¦¹ØϵZµÄÍâ¹Ø¼ü×Ö¡£ÈôMÊǹØϵSµÄÍâ¹Ø¼ü×Ö£¬ÔòSÖÐÿһ¸öÔª×éÔÚMÉϵÄÖµ±ØÐëÊÇ¿ÕÖµ»òÊǶÔÓ¦¹ØϵZÖÐij¸öÔª×éµÄÖ÷¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ