MySQLÊý¾Ý¿âÓëMS SQL Server²»Í¬Ö®´¦µÄ±íÏÖ
ÒÔϵÄÎÄÕÂÖ÷ÒªÏò´ó¼Ò½éÉܵÄÊÇMS SQL Server ÔÚʵ¼Ê²Ù×÷ÖкÍMySQLÊý¾Ý¿âµÄ²»Í¬£¬ÎÒÃÇ´ó¼Ò¶¼ÖªµÀMySQLÊý¾Ý¿âÔÚʵ¼ÊÓ¦ÓÃÖл¹ÊÇÕ¼ÓÐÒ»¶¨µÄ±ÈÀýµÄ£¬ÄÇôMS SQL ServerÓÖÈçºÎ£¿ÒÔϵÄÎÄÕÂÖ÷Òª¾ÍÊǶÔMySQLÊý¾Ý¿âÓëMS SQL Server µÄÇø±ðµÄÃèÊö¡£
MS SQL Server ºÍ MySQLÊý¾Ý¿âµÄÇø±ð£º
1.MySQLÖ§³Öenum,ºÍsetÀàÐÍ£¬SQL Server²»Ö§³Ö
2.MySQLÊý¾Ý¿â²»Ö§³Önchar,nvarchar,ntextÀàÐÍ
3.MySQLµÄµÝÔöÓï¾äÊÇAUTO_INCREMENT£¬¶øMS SQLÊÇidentity(1,1)
4.MS SQL²»Ö§³Öreplace into Óï¾ä£¬µ«ÊÇÔÚ×îеÄsql20008ÀïÃ棬Ҳ֧³ÖmergeÓï·¨
5.MySQLÖ§³Öinsert into table1 set t1 = "", t2 = "",µ«ÊÇMSSQL²»Ö§³ÖÕâÑùд
6.MySQLÖ§³Öinsert into tabl1 values (1,1), (1,1), (1,1),(1,1),(1,1), (1,1), (1,1)
7.MS SQL²»Ö§³ÖlimitÓï¾ä£¬ÊǷdz£Òź¶µÄ£¬Ö»ÄÜÓÃtop È¡´úlimt0,N£¬row_number()over()º¯ÊýÈ¡´úlimit N,M
8.MySQLÔÚ´´½¨±íʱҪΪÿ¸ö±íÖ¸¶¨Ò»¸ö´æ´¢ÒýÇæÀàÐÍ£¬¶øMS SQLÖ»Ö§³ÖÒ»ÖÖ´æ´¢ÒýÇæ
9.PHPÁ¬½ÓMySQLÊý¾Ý¿âºÍMS SQLµÄ·½Ê½¶¼²î²»¶à£¬Ö»ÐèÒª½«º¯ÊýµÄMySQLÌæ»»³ÉMS SQL¼´¿É¡£
10.MySQLµÄ¹ÜÀí¹¤¾ßÓм¸¸ö±È½ÏºÃµÄ£¬MySQL_front,ºÍ¹Ù·½ÄǸöÌ×¼þ£¬²»¹ý¶¼Ã»ÓÐSSMSµÄʹÓ÷½±ã£¬ÕâÊÇMySQLºÜ´óµÄÒ»¸öȱµã¡£
11.MySQLÐèҪΪ±íÖ¸¶¨´æ´¢ÀàÐÍ
12.MS SQLʶ±ð·ûÊÇ[type],±íʾËûÇø±ðÓڹؼü×Ö£¬µ«ÊÇMySQLÈ´ÊÇ `£¬Ò²¾ÍÊÇ°´¼ü1×ó±ßµÄÄǸö·ûºÅ
(×¢Ò⣺Õâ¸ö²»Êǵ¥ÒýºÅŶ£¬ÎÒ¸Õ¿ªÊ¼¾ÍÔÚÕâ·¸À§ÁË£¡£¡£¡) ¡£
13.MSSQLÖ§³Ögetdate()·½·¨»ñÈ¡µ±Ç°Ê±¼äÈÕÆÚ£¬µ«ÊÇMySQLÀïÃæ¿ÉÒÔ·ÖÈÕÆÚÀàÐͺÍʱ¼äÀàÐÍ£¬»ñÈ¡µ±Ç°ÈÕÆÚÊÇcur_date()£¬µ±Ç°ÍêÕûʱ¼äÊÇnow()º¯Êý
14.MySQL²»Ö§³ÖĬÈÏֵΪµ±Ç°Ê±¼äµÄdatetimeÀàÐÍ£¨MSSQLºÜÈÝÒ××öµ½£©£¬ÔÚMySQLÊý¾Ý¿âÀïÃæÊÇÓÃtimestampÀàÐÍ
15.MS SQLÀïÃæ¼ì²éÊÇ·ñÓÐÕâ¸ö±íÔÙɾ³ý£¬ÐèÒªÕâÑù£º
- if exists (select * from dbo.systs
- here id = t_id(N"uc_newpm")andTPROPERTY(id,N"IsUserTable")=1)
µ«ÊÇÔÚMySQLÀïÃæÖ»ÐèÒª DROP TABLE IF EXISTS cdb_forums;
16.MySQL text×Ö¶ÎÀàÐͲ»ÔÊÐíÓÐĬÈÏÖµ
17.MySQLµÄÒ»¸ö±íµÄ×ܹ²×ֶγ¤¶È²»³¬¹ý65XXX¡£
18.MS SQLĬÈϵ½´¦±í´´½¨Óï¾äµÄĬÈÏÖµ±íʾÊÇ((0)),¶øÔÚMySQLÀïÃæÊDz»ÔÊÐí´øÁ½À¨ºÅµÄ
19.ͬÑùµÄ¸ºÔØѹÁ¦£¬MySQLÒªÏûºÄ¸üÉÙµÄCPUºÍÄڴ棬MS SQLµÄÈ·ÊǺܺÄ×ÊÔ´¡£
20.MySQLÖ§³ÖÎÞ·ûºÅÐ͵ÄÕûÊý£¬ÄÇô±È²»Ö§³ÖÎÞ·ûºÅÐ͵ÄMS SQL¾ÍÄܶà³öÒ»±¶µÄ×î´óÊý´æ´¢
21.MySQL²»Ö§³ÖÔÚMSSQLÀïÃæʹÓ÷dz£·½±ãµÄvarchar(max)ÀàÐÍ£¬Õâ¸öÀàÐÍÔÚMSSQLÀïÃæ¼È¿É×öÒ»°ãÊý¾Ý´æ´¢£¬Ò²¿ÉÒÔ×öblobÊý¾Ý´æ´¢
22.MySQLÊý¾Ý¿â´´½¨·Ç¾Û¼¯Ë÷ÒýÖ»ÐèÒªÔÚ´´½¨±íµÄʱºòÖ¸¶¨Îªkey¾ÍÐУ¬±ÈÈ磺KEYdisplayorder(fid,displayorder) ÔÚMS SQLÀïÃæ±ØÐëÒª£º
- create unique nonclustered index
- index_uc_protectedmrs_username_appid on dbo.uc_protectedmrs
- (username asc,appid asc)
23.Ò»¸öºÜ±íÃæµÄÇø±ð¾ÍÊÇMySQLµÄ°²×°Ìرð¼òµ¥£¬¶øÇÒÎļþ´óС²Å110M£¨·Ç°²×°°æ£©£¬Ïà±È΢ÈíÕâ¸öÅÓÈ»´óÎ°²×°½ø¶ÈÀ´Ëµ¼òÖ±¾ÍÊÇ.....
24.MySQLµÄ´æ´¢¹ý³ÌÖ»ÊdzöÏÖÔÚ×îеİ汾ÖУ¬Îȶ¨ÐÔºÍÐÔÄÜ¿ÉÄܲ»ÈçMS SQL¡£
25.MySQLÊý¾Ý¿âÖ§³Ödate,time,yearÀàÐÍ£¬MS SQLµ½2008²ÅÖ§³ÖdateºÍtime
ת×Ô£ºhttp://database.51cto.com/art/201006/203094.htm
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ