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

sqlserverºÍmysqlµÄÐÐתÁÐͨÓô洢¹ý³Ì

sqlserverÖУº
  1 /*
  2 1 * Description:¶ÔÊý¾Ý±í½øÐÐÐÐÁÐת»»
  3 2 * Author:llf
  4 3 * µ÷ÓÃ˵Ã÷£ºexec SP_RowChangeCol 'ѧÉú³É¼¨±í','ÐÕÃû','¿Î³Ì','·ÖÊý','desc',0,0,'where Ä꼶=''Ò»Ä꼶'''
  5 4 * ¸Ã´æ´¢¹ý³Ìµ÷ÓõÄÏà¹Øº¯Êý£ºdbo.Get_StrArrayLength(@groupCol,',')£»dbo.dbo.Get_StrArrayStrOfIndex(@groupCol,',',1)
  6 */
  7  
  8 Alter proc SP_RowChangeCol
  9  @tableName varchar(100),    --Ҫת»»µÄÊý¾Ý±íÃû(ѧÉú³É¼¨±í)
 10  @groupCol varchar(100),     --·Ö×éÁÐ(ѧÉúÐÕÃû)
 11  @changeCol varchar(100),    --Ҫת»»µÄÁÐ(¿¼ÊÔ¿ÆÄ¿)
 12  @countCol varchar(100),     --ͳ¼ÆÁÐ(³É¼¨)
 13  @orderby varchar(4),        --ת»»ÁеÄÅÅÐò¹æÔò(ÉýÐòasc,½µÐòdesc)
 14  @isColSum int,              --ÊÇ·ñͳ¼ÆÁУ¨1ÊÇ£»0·ñ£©
 15  @isRowSum int,              --ÊÇ·ñͳ¼ÆÐУ¨1ÊÇ£»0·ñ£©
 16  @strWhere varchar(max)         --²éѯÌõ¼þ('where Ä꼶=''Ò»Ä꼶''')
 17  as
 18  begin
 19      declare @sqlhead varchar(8000),@sqlend varchar(8000)
 20       ,@sql1 varchar(8000),@sql2 varchar(8000),@sql3 varchar(8000),@sql4 varchar(8000)
 21       ,@i int,@ic varchar(20),@sql varchar(1000)
 22 
 23 
 24  


Ïà¹ØÎĵµ£º

mysqlËæ»úÊý¾ÝÉú³É²¢²åÈë

      dblpÊý¾Ý¿âÖÐÒýÓÃÐÅÏ¢ºÜÉÙ£¬Æ½¾ùһƪÂÛÎÄÒýÓÃ0.2ƪ¡£Ê¹ÓÃdblp×öʵÑéÊý¾Ý¼¯µÄijƪÂÛÎÄÌáµ½£¬¿ÉÒÔËæ»úÌí¼ÓÒýÓÃÐÅÏ¢¡£ÊÜ´ËÆô·¢£¬ÎÒ´òËãΪÿһƪÂÛÎĶ¼Ìí¼Ó20ƪËæ»úÒýÓã¬ÓÚÊǾÍд³öÁËÈçϵÄsqlÓï¾ä£º
     String sql = "insert into citation(pId1,pId2) values( (selec ......

Mysql³£ÓÃÃüÁî

ËäÈ»ºÜ¶àÈËÓÃmysql front£¬ µ«ÊǸöÈ˾õµÃmysql»¹ÊÇÃüÁîÐÐϱȽϺÃÓ㬱Ͼ¹Êý¾Ý¿âÔÚÃüÁîÐÐϲÙ×÷±È½ÏÍõµÀ¶øÇÒmysqlÍêÈ«Ãâ·Ñ¡£¡£
ÏÂÃæ½éÉÜһЩmysqlÃüÁîÐÐϳ£ÓõÄÃüÁÓÐһЩÊý¾Ý¿â»ù´¡µÄ£¬¼´Ê¹ÊǵÚÒ»´ÎÓÃmysql¶ÔÕÕÏÂÃæµÄÃüÁî²Ù×÷Ò²ÍêÈ«¿ÉÒÔ£¬Èç¹ûÎÒ·¢ÏÖ»¹ÓÐÆäËüÃüÁîÒ²ÊǾ­³£Óõ½µÄÎÒ»á½Ðø¸üС£¡£¡£
·þÎñÆ÷£º
1. Æô¶¯m ......

pbÁ¬½ÓmySqlÊý¾Ý¿â

PBÁ¬½ÓMySQLÊý¾Ý¿â
 
È¥mysqlµÄ¹Ù·½ÍøÕ¾ÏÂÔØodbc connector(http://dev.mysql.com/downloads/connector/odbc/)
ÏÂÔصÄÊÇmysql-connector-odbc-noinstall-5.1.6-win32.zip
½âѹºóÖ±½ÓÔËÐÐÎļþ¼ÐÖÐµÄ Install.bat Åú´¦ÀíÎļþ
mysql-connectorÓкü¸ÖÖ£¬Ñ¡ÔñÒ»¸ö×Ô¼ºÏ²»¶µÄ¼´¿É¡£
ÔÚxpÖдò¿ªODBCÊý¾ÝÔ´¹ÜÀíÆ÷£¨¿ØÖ ......

mysql Êý¾Ýͬ²½

  Êý¾Ýͬ²½ÎÊÌâÖÕÓÚ½â¾ö£º
תÌû£ºA·þÎñÆ÷£º host 192.168.1.101 port 3306 B·þÎñÆ÷£º host 192.168.1.102 port 3306 1,ÊÚȨÓû§£º A·þÎñÆ÷ mysql>grant replication slave,file on *.* to 'repl9'@'192.168.1.102' identified by '1234569'; Query OK, 0 rows affected (0.01 sec) mysql> flush privileges; Qu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ