ת SQL server ÓëOracle¿ª·¢±È½Ï
ÔÎĵØÖ·£ºhttp://www.cnblogs.com/wangxiaohuo/archive/2008/04/20/1162631.html
±¾ÎĵµÖ÷Òª´ÓoracleÓësql serverÓï·¨ÉϽøÐвîÒìÐԱȽϣ¬ÖîÈçÁ½ÕßÔÚ¹ÜÀí£¬ÐÔÄÜ£¬ÓÅ»¯µÈ·½ÃæµÄ²îÒì²»×÷±È½Ï¡£
¡ñ¸ÅÄîÉÏÇø±ð
1.Oracle ÊÇÒ»ÖÖ¶ÔÏó¹ØϵÊý¾Ý¿â¹ÜÀíϵͳ£¨ORDBMS),¶øSql server Ö»ÊǹØϵÐÍÊý¾Ý¿â¹Ü
Àíϵͳ£¨RDBMS£©.
2.OracleʹÓÃInternetÎļþϵͳ£¬¸Ãϵͳ»ùÓÚJavaµÄÓ¦ÓóÌÐò£¬¿ÉÒÔʹÊý¾Ý¿â»ùÓÚ³ÉΪ
InternetµÄ¿ª·¢Æ½Ì¨£»Sql server ÊÇ»ùÓÚwindows
3.Orace Ö÷ÒªµÄÈýÀàÎļþÊÇ£ºÊý¾ÝÎļþ£¬¿ØÖÆÎļþ£¬»Ö¸´ÈÕÖ¾Îļþ
Sql server: Ö÷ÒªÊý¾ÝÎļþ£¨±ØÐëÓÐÇÒÖ»ÄÜÓÐÒ»¸ö£©£¬´ÎÒªÊý¾ÝÎļþÒÔ¼°ÈÕÖ¾Îļþ
4.Á½ÕßÖ§³ÖµÄÃüÁîÀà±ð²î²»¶à£¬Êý¾Ý¶¨ÒåÓïÑÔ£¬Êý¾Ý²Ù×ÝÓïÑÔ£¬ÊÂÎñ´¦Àí¿ØÖÆÓïÑÔ£¬
Êý¾Ý¿ØÖÆÓïÑÔ.ÔÚOracleÖУ¬ÔÚÊÂÎñ¿ØÖÆÓïÑÔÖгýÁËcommit,rollbackµÈ»¹¶àÁËÒ»¸ö
Savepoint£¬ÉèÖñ£´æµã¡£
5.oracle sqlµÄÀ©Õ¹½ÐPL/SQL,Ö÷ÒªµÄ½á¹¹»¯²éѯ¹¤¾ßÓÐsql*plus£¬isql*plus, pl/sqlµÈ
Ms sqlµÄÀ©Õ¹½ÐTransact-SQL£¬Ö÷ÒªµÄ½á¹¹»¯²éѯ¹¤¾ß¾ÍÊÇ×Ô´øµÄ²éѯ·ÖÎöÆ÷
6.Ö÷ÒªÊý¾ÝÀàÐÍ
Orace:Ö÷ÒªÖ§³Öchar ,varchar2,long,number,datetime,raw,long raw,clob,blob,bfie
Ç°ÃæÈý¸öÊÇCharacterÊý¾ÝÀàÐÍ£¬varchar2Ö§³Ö¿É±ä³¤¶ÈµÄ×Ö·û´®£¬longÖ§³Ö¿É
±ä³¤¶ÈµÄ×Ö·ûÊý¾Ý£¬raw,long rawÓÃÓÚ´æ´¢¶þ½øÖÆÊý¾Ý£¬long raw ¿É±ä³¤¶È
×îºóÈý¸öÊÇ´ó¶ÔÏó£¨lob)Êý¾ÝÀàÐÍ,´æ´¢·Ç½á¹¹»¯µÄÐÅÏ¢£¬ÀýÈçÉùÒô¼ô¼£¬ÊÓƵÎļþ
CLOG±íʾCharacter Lob,¿ÉÒÔ´æ´¢´óÁ¿µÄ×Ö·ûÊý¾Ý£¬Ëü¶ÔÓÚ´æ´¢·Ç½á¹¹»¯µÄXML
Îĵµ·Ç³£ÓÐÓá£BLOG±íʾBinary LOG,´ËÊý¾ÝÀàÐÍ¿ÉÒÔ´æ´¢´óÐͶþ½øÖƶÔÏó£¬Èç
ͼÐΡ¢ÊÓƵ¼ô¼£¬ÉùÒôÎļþµÈ
Ö§²»Ö§³Ö£¬money,»õ±Ò
Sql server Ö÷ÒªÖ§³ÖµÄÎı¾ÀàÐÍchar ,varchar,nchar,nvarchar,text,ntext,image£¬»õ±ÒÀàÐÍ
Money,¶þ½øÖÆ binary,varbinaryµÈµÈ
¡ñ¿ª·
Ïà¹ØÎĵµ£º
SQLµÄ²Ù×÷£º
E.g.
judging-±íÃû
userid, name, password-±íÖеĹؼü×Ö
Ìí¼Ó£º
string sql = "insert into judging (userid,name,password) values('" + userid.Text.Trim() + "','" + name.Text.Trim() + "','" + password.Text.Trim() + "')";
ɾ³ý£º
string sql = "delete from judging where userid=" + ......
Ë®»·¾³¼à²âÊý¾Ý´æ´¢½á¹¹ÖÐÓÐÒ»ÖÖģʽ½Ð×ö"Êú±íģʽ"£¬¼´ÔÚ¼à²âÊý¾Ý±íÖУ¬Ä³¸öµãλÔÚij¸öʱ¼äµãÉϸ÷¼à²âÏîÄ¿µÄŨ¶È²â¶¨ÖµÔÚÎïÀí±íÖд洢ÔÚ¶àÌõ¼Ç¼ÖУ¬³ÊÊú×´·Ö²¼¡£¼à²âÊý¾Ý±íÖаüº¬²âµã´úÂë¡¢¼à²âʱ¼ä¡¢¼à²âÏîÄ¿´úÂ롢Ũ¶È²â¶¨ÖµµÈ£¬ËùÓмà²âÏîÄ¿µÄŨ¶È²â¶¨Öµ¶¼´æ´¢ÔÚͬһ¸ö×Ö¶ÎÖУ¬¼ÓÒÔ¼à²âÏîÄ¿´úÂë×÷ΪÇø·Ö×ֶΡ£
"Êú ......
sql Ìí¼ÓзÖÇø
ALTER PARTITION SCHEME SCH_Source_ID_DT_ID
NEXT USED sn3
go
ALTER PARTITION FUNCTION [PF_Source_ID_DT_ID]()
SPLIT RANGE ('350000')
ɾ³ý·ÖÇø
±à¼
ALTER PARTITION FUNCTION [PF_Source_ID_DT_ID]( ......
ʹÓà Microsoft SQL Server °²×°Ïòµ¼µÄ"ʵÀýÃû"Ò³£¬¿ÉÖ¸¶¨´´½¨Ä¬ÈÏʵÀý»¹ÊÇ´´½¨ SQL Server Express ÃüÃûʵÀý¡£³ý·ÇÄúÑ¡ÔñĬÈÏʵÀý£¬·ñÔò SQL Server Express ½«Ê¼ÖÕ°²×°ÃüÃûʵÀý (SQLExpress)¡£´ËÐÐΪÓë SQL Server 2005 ²»Í¬£¬ºóÕßÔÚδѡÔñÃüÃûʵÀýµÄÇé¿öÏ£¬½«Ê¼ÖÕ°²×°Ä¬ÈÏʵÀý¡£
Ñ¡Ïî
Ñ¡Ïî
˵Ã÷
ĬÈÏʵÀý ......
Ëø»úÖÆ
NOLOCKºÍREADPASTµÄÇø±ð¡£
1. ¿ªÆôÒ»¸öÊÂÎñÖ´ÐвåÈëÊý¾ÝµÄ²Ù×÷¡£
BEGIN TRAN t
INSERT INTO Customer
SELECT 'a','a'
2. Ö´ÐÐÒ»Ìõ²éѯÓï¾ä¡£
SELECT * from Customer WITH (NOLOCK)
½á¹ûÖÐÏÔʾ"a"ºÍ"a"¡£µ±1ÖÐÊÂÎñ»Ø¹öºó£¬ÄÇôa½«³ÉΪÔàÊý¾Ý¡£(×¢:1ÖеÄÊÂÎñδÌá½») ¡£NOLOCK±íÃ÷ûÓжÔÊý¾Ý±íÌí¼Ó¹²Ï ......