db2ºÍMSSQLµÄÇø±ð
db2ºÍMSSQLµÄÇø±ð(ÓÈÆäÊÇSQLÓï¾ä·½ÃæµÄÓï·¨£¬»¹ÇëÏêϸµãлл)
»°ÌâÌ«´ó£¬½¨ÒéÏÈÔÚÍøÉÏ×Ô¼ºËÑË÷һϡ£ Äã¿ÉÒÔÌù³ö¾ßÌåµÄijһµãÈôó¼ÒÀ´ÌÖÂÛ¡£
liuzhimsn (liuzhimsn)
'½ØÖÁ2010-03-31 15:46:29 Óû§½áÌûÂÊ0.00%
µ±ÄúµÄÎÊÌâµÃµ½½â´ðºóÇ뼰ʱ½áÌù.
http://topic.csdn.net/u/20090501/15/7548d251-aec2-4975-a9bf-ca09a5551ba5.html
ºÃµÄлл°¡
DB2Ö÷ÒªÓ¦ÓÃÓÚ´óÐÍÓ¦ÓÃϵͳ£¬¾ßÓнϺõĿÉÉìËõÐÔ£¬¿ÉÖ§³Ö´Ó´óÐÍ»úµ½µ¥Óû§»·¾³£¬Ó¦ÓÃÓÚOS/2¡¢WindowsµÈƽ̨Ï¡£ DB2ÌṩÁ˸߲ã´ÎµÄÊý¾ÝÀûÓÃÐÔ¡¢ÍêÕûÐÔ¡¢°²È«ÐÔ¡¢¿É»Ö¸´ÐÔ£¬ÒÔ¼°Ð¡¹æÄ£µ½´ó¹æÄ£Ó¦ÓóÌÐòµÄÖ´ÐÐÄÜÁ¦£¬¾ßÓÐÓëƽ̨Î޹صĻù±¾¹¦ÄܺÍSQLÃüÁî¡£DB2²ÉÓÃÁËÊý¾Ý·Ö¼¶¼¼Êõ£¬Äܹ»Ê¹´óÐÍ»úÊý¾ÝºÜ·½±ãµØÏÂÔص½LANÊý¾Ý¿â·þÎñÆ÷£¬Ê¹µÃ¿Í»§»ú/·þÎñÆ÷Óû§ºÍ»ùÓÚLANµÄÓ¦ÓóÌÐò¿ÉÒÔ·ÃÎÊ´óÐÍ»úÊý¾Ý£¬²¢Ê¹Êý¾Ý¿â±¾µØ»¯¼°Ô¶³ÌÁ¬½Ó͸Ã÷»¯¡£ ËüÒÔÓµÓÐÒ»¸ö·Ç³£Í걸µÄ²éѯÓÅ»¯Æ÷¶øÖø³Æ£¬ÆäÍⲿÁ¬½Ó¸ÄÉÆÁ˲éѯÐÔÄÜ£¬²¢Ö§³Ö¶àÈÎÎñ²¢Ðвéѯ¡£ DB2¾ßÓкܺõÄÍøÂçÖ§³ÖÄÜÁ¦£¬Ã¿¸ö×Óϵͳ¿ÉÒÔÁ¬½ÓÊ®¼¸Íò¸ö·Ö²¼Ê½Óû§£¬¿Éͬʱ¼¤»îÉÏǧ¸ö»î¶¯Ị̈߳¬¶Ô´óÐÍ·Ö²¼Ê½Ó¦ÓÃϵͳÓÈΪÊÊÓá£
MSÖ¸µÄÊÇ΢ÈíMicrosoft,SQLÊǽṹ»¯²éѯÓïÑÔ.½áºÏÆðÀ´¾ÍÊÇ˵:MS SQLÊÇָ΢ÈíµÄSQL ServerÊý¾Ý¿â·þÎñÆ÷£¬ËüÊÇÒ»¸öÊý¾Ý¿âƽ̨£¬ÌṩÊý¾Ý¿âµÄ´Ó·þÎñÆ÷µ½Öն˵ÄÍêÕûµÄ½â¾ö·½°¸£¬ÆäÖÐÊý¾Ý¿â·þÎñÆ÷²¿·Ö£¬ÊÇÒ»¸öÊý¾Ý¿â¹ÜÀíϵͳ£¬ÓÃÓÚ½¨Á¢¡¢Ê¹ÓúÍά»¤Êý¾Ý¿â¡£
SQL ServerÒ»¿ªÊ¼²¢²»ÊÇ΢Èí×Ô¼ºÑз¢µÄ²úÆ·£¬¶øÊǵ±Ê±ÎªÁËÒªºÍIBM¾ºÕùʱ£¬ÓëSybaseºÏ×÷Ëù²úÉúµÄ£¬Æä×îÔçµÄ·¢Õ¹ÕßÊÇSybase£¬Í¬Ê±Î¢ÈíÒ²ºÍSybaseºÏ×÷¹ý SQL Server 4.2°æ±¾µÄÑз¢£¬Î¢ÈíÒཫSQL Server 4.2ÒÆÖ²µ½Windows NT£¨µ±Ê±Îª3.1°æ£©£¬ÔÚÓëSybaseÖÕÖ¹ºÏ×÷¹Øϵºó£¬×ÔÁ¦¿ª·¢³öSQ
Ïà¹ØÎÊ´ð£º
mssql 2005 ÊÇÓ¢ÓïÕý°æµÄ¡£
²»ÖªµÀΪʲôÀýÈç
select content_cn,content_ru from table where content_cn like '%ÖÐÎÄ%'
select content_cn,content_ru from table where content_ru ......
ÎÒÏëÎÊÏÂÐéÄâÖ÷»úÔËÓªÉ̵ÄMSSQL¿Õ¼ä¿É²»¿ÉÒÔÔ¶³ÌÁ¬½Ó£¿
¾ÍÊÇ˵ÔÚÎҵĻúÆ÷ÉÏÄܲ»ÄÜÓÃSSMSÁ¬½ÓËûµÄ·þÎñÆ÷
Èç¹ûÓÐÇë¸æËßÎÒÔËÓªÉ̵ĵØÖ·£¬Ð»Ð»£¡
ÔËÓªÉ̵ĵØÖ·½ÐÔËÓªÉ̸æËßÄ㣬¹Ø¼üµÄÊÇËû³ýÁËÔÊÐíÄãµÄ»úÆ÷Á¬½ÓÍ⣬»¹µ ......
ÎÒÔÀ´ÊÇÓÉaccessת³ÉmssqlµÄ..ÔÀ´µÄ×ÔÔö×Ô¶¯Ã»ÓÐÁË
ÎÒÔõôÓÃsqlÀ´×ª»¯ÄØ£¿£¨²»ÏëÔÚÆóÒµÃæ°å¹ÜÀíÖÐ¸Ä ±íÌ«¶à..£©
»¹ÓÐsmalldateµÄĬÈÏÖµ¸Ä³Égetdate()µÄÓï¾äÒªÔõôд..ллÁË
accessת³ÉmssqlµÄ..ÔÀ´µÄ×ÔÔö×Ô¶ ......
ÎÒÒª°Ñv10004¸Ä³ÉÃû×ÖÆøѹ£¬ÎªºÎ×ܳö´í
EXEC sp_rename 'dbo,A0131.[v10004]', 'Æøѹ', 'COLUMN'
ÏûÏ¢ 15248£¬¼¶±ð 11£¬×´Ì¬ 1£¬¹ý³Ì sp_rename£¬µÚ ......
ÎÒ¶¨ÒåÒ»¸öº¯Êý£¬ÓÐÎå¸ö²ÎÊý
µ«Êµ¼ÊÉÏÎÒµ÷ÓÃʱ²»Ò»¶¨´«Îå¸ö²ÎÊý£¬ÓÐʱֻÐèÒª´«¶þ¸ö²ÎÊý£¬ÓÐʱֻÐèÒª´«Èý¸ö²ÎÊýµÈµÈ
ÕâÖÖ²ÎÊýÔõô¶¨ÒåÄØ£¿
SQL code:
CREATE FUNCTION [ owner_name.] function_name
( [ { ......