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

ÀûÓÃSQLSERVERµÄʼþ̽²âÆ÷ÕÆÎÕÓÃÓÑϵͳµÄ±í½á¹¹

SQLSERVERµÄʼþ̽²âÆ÷ÊÇÒ»¸öºÜÇ¿´óºÜÖ±¹ÛµÄ¹¤¾ß£¬µ±ÎÒÃÇÔÚERPϵͳÀïÃæ×öÒ»¶¨²Ù×÷µÄʱºò£¬¶¼»áÔÚÊý¾Ý¿âÀïÃæÐγɲéѯ»òÕßÔöɾ¸ÄµÄT-SQLÓï¾ä¡£Í¨¹ýʼþ̽²âÆ÷¾Í¿ÉÒÔÖªµÀERPÀïÃæµÄµ¥¾ÝÔÚÊý¾Ý¿âµÄÄĸö±íÀïÃ棬ÉõÖÁÄĸö×Ö¶ÎÀïÃæ¡£»¹¿ÉÒÔ¸ù¾Ý̽²âµ½µÄSQLÓï¾ä·ÖÎöERPϵͳµÄ±í½á¹¹£¬±íÖ®¼äµÄ¹ØÁª×Ö¶ÎÊÇÄĸö¡£
´ó¼Ò³õ´ò¿ªÊ¼þ̽²âÆ÷ʱ¿ÉÄÜ»á¸ã²»´óÇå³þ£¬ÒòΪERPÔÚÔËÐÐʱ£¬ºǫ́µÄSQLÓï¾äÁ¿ÊǺܴóµÄ£¬1ÃëÖÓ¿ÉÒÔÌø¸ö¼¸Ê®Ìõ£¬Äã¸ù±¾²»ÖªµÀÄľäSQLÊÇÕë¶ÔÄãµÄ²Ù×÷µÄ¡£
ÕâÀï¾Í¸ú´ó¼Ò·ÖÏí1Ï£¬1¸öºÜºÃµÄ·½·¨¾ÍÊÇÔÚ´ò¿ªÊ¼þ̽²âÆ÷ʱ£¬ÔÚÄ£°åÉèÖýçÃæµÄµÚÈý¸öÑ¡ÏÀïÃæ°Ñ"hostname"¸øÑ¡ÉÏ£¬È»ºóÔÚµÚËĸöÑ¡Ï£¨Êý¾ÝÁУ©ÀïÃæÕÒµ½hostname£¬´ò¿ªÄ¿Â¼Ê÷£¬ÉèÖÓͬÓÚ¡¾ÄãµÄ¼ÆËã»úÃû×Ö¡¿”£¬µãÈ·¶¨¡£ÕâÑùʼþ̽²âÆ÷¾ÍÖ»¸ú×ÙÄãµçÄÔÉϵÄERPÔÚÊý¾Ý¿â×öµÄ²Ù×÷¼Ç¼¡£
Äã¿ÉÒÔ°ÑÓÐÓõÄSQLÓï¾ä¸´ÖƵ½²éѯ·ÖÎöÆ÷ÀïÃ棬Ȼºóselect top 1 * from Ö»ÏÔʾ1ÐУ¬»á³öÀ´Êý¾Ý¡£Õâ¸öÊý¾Ý¸úǰ̨ERPÀïÃæµÄÊý¾ÝÈ¥ºË¶Ô£¬Äã¾ÍÖªµÀÕâ¾äSQLÔÚ¸ÉÂËûµÄÿ¸ö×ֶδú±íʲôÒâ˼¡£
ÓÃÓÑ×öÁ˺ܶàµÄÊÓͼ£¬¶ÔÓÚÎÒÃÇ×ö×Ô¶¨Ò屨±íÈ¡Êý¾Ý»áºÜ·½±ã¡£µ«ÊÇÕâЩÊÓͼµÄ×ÊÁÏÍøÉÏ»ù±¾ÕÒ²»µ½£¬ËùÒÔÀûÓÃʼþ̽²âÆ÷¿ÉÒÔ½Ó´¥µ½ÕâЩÊÓͼ¡£
ÁíÍâÓÃÓÑÿ¾äSQL¶¼»á´ø1¾äset nocount on ÆäʵÕâ¾ä»°Ã»Ê²Ã´Òâ˼£¬¾ÍÊÇÈÃSQLSERVER²»¸øERP·µ»Ø´Ë´Î²Ù×÷Ó°ÏìµÄÐÐÊý£¬ÕâÑù¿ÉÒÔ½ÚÊ¡Á÷Á¿¡£
ÏȽéÉܵ½ÕâÀÀûÓÃÕâ¸ö·½·¨¿ÉÒÔ½â¾öºÜ¶àºÜ¶àÎÊÌ⣬»òÕß˵¿ÉÒÔÌṩºÜ¶à½â¾öÎÊÌâµÄ˼·¡£
µ±È»ÁË£¬ÐÞ¸ÄÊý¾Ý¿âÊý¾Ý֮ǰ¶¼Òª±¸·ÝÊý¾Ý¿â¡£


Ïà¹ØÎĵµ£º

sqlserverºÍoracle³£Óú¯Êý¶Ô±È

sqlserverºÍoracle³£Óú¯Êý¶Ô±È
Êýѧº¯Êý
¡¡¡¡1.¾ø¶ÔÖµ
¡¡¡¡S:select abs(-1) value
¡¡¡¡O:select abs(-1) value from dual
¡¡¡¡2.È¡Õû(´ó)
¡¡¡¡S:select ceiling(-1.001) value
¡¡¡¡O:select ceil(-1.001) value from dual
¡¡¡¡3.È¡Õû£¨Ð¡£©
¡¡¡¡S:select floor(-1.001) value
¡¡¡¡O:select floor(-1.0 ......

Mysql£¬SqlServer£¬OracleÖ÷¼ü×Ô¶¯Ôö³¤µÄÉèÖÃ


Mysql£¬SqlServer£¬OracleÖ÷¼ü×Ô¶¯Ôö³¤µÄÉèÖÃ
1¡¢°ÑÖ÷¼ü¶¨ÒåΪ×Ô¶¯Ôö³¤±êʶ·ûÀàÐÍ
ÔÚmysqlÖУ¬Èç¹û°Ñ±íµÄÖ÷¼üÉèΪauto_incrementÀàÐÍ£¬Êý¾Ý¿â¾Í»á×Ô¶¯ÎªÖ÷¼ü¸³Öµ¡£ÀýÈ磺
create table customers(id int auto_increment primary key not null, name varchar(15));
insert into customers(name) values("name1"),("nam ......

SQLSERVERÍâÁ¬½Ó·û

±íA
tmpA:
id     name
00     Ãû×ÖA
01     Ãû×ÖB
02     Ãû×ÖC
03     Ãû×ÖD
04     Ãû×ÖE
tmpB:
id     class
02     °à¼¶A
06 & ......

mysql,sqlserver,oracleÈýÖÖÊý¾Ý¿âµÄ´ó¶ÔÏó´æÈ¡


mysql ´ó¶ÔÏó´æÈ¡:
ÀàÐÍÒ»°ãÓ¦¸ÃÓÃmediumblod,
blobÖ»ÄÜ´æ2µÄ16´Î·½¸öbyte,
mediumblodÊÇ24´Î·½,
Ò»°ãÀ´Ëµ¹»ÓÃÁË.longblobÊÇ32´Î·½ÓÐЩ´ó.
MYSQLĬÈÏÅäÖÃÖ»ÄÜ´æ1M´óСµÄÎļþ,ÒªÐÞ¸ÄÅäÖÃ,WIN°æ±¾µÄÔÚmysql.iniÎļþÖÐ
ÐÞ¸Ämax_allowed_packet,net_buffer_lengthµÈ¼¸¸ö²ÎÊý,»òÖ±½ÓSET GLOBAL varName=value.
linux°æ± ......

´ÓOracle¡¢SQLServerÖÐÈ¡µÃ×¢ÊÍ

¸ù¾Ý±í½á¹¹Éú³ÉJavaÎļþµÄ¹¤¾ß£¬ÔÚÈ¡µÃ±íµÄ×Ö¶ÎʱÈçºÎÈ¡µÃ±íµÄ¸÷ÖÖÐÅÏ¢ºÍ×¢ÊÍ£¬¾­¶à·½ËÑÑ°ÕÒµ½ÈçÏÂ×ÊÁϱ¸Ó㺠oracle£º
        user_tab_comments;±í×¢ÊÍ
        user_col_comments;±í×Ö¶Î×¢ÊÍ
        Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ