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

excelµ¼ÈëSQLʱÌáʾ"Êý¾Ý¶ÔÓÚËùÖ¸¶¨µÄ»º³åÇøÀ´½²Ì«´ó"


excelµ¼ÈëSQLʱÌáʾ"Êý¾Ý¶ÔÓÚËùÖ¸¶¨µÄ»º³åÇøÀ´½²Ì«´ó"
ÒÔÏÂÄÚÈÝת×Ô[CSDN]
×î½ü´¦ÀíexcelÊý¾Ýµ¼Èëµ½Sql ServerÖУ¬Ê§°Ü£¬±¨´íÈçÏ £º
×÷ΪԴÁÐ3£¨“²úƷ˵Ã÷”£©µÄÊý¾Ý¶ÔÓÚËùÖ¸¶¨µÄ»º³åÇøÀ´½²Ì«´ó ¡£
ÎÒµÄexcelÎļþÖÐÓÐÒ»ÁнГ²úƷ˵Ã÷”£¬¾ÍÊÇһЩÎÄ×Ö¡£Sql
server´¦Àíµ¼excelÊý¾ÝÁ÷³ÌÊÇÕâÑùµÄ£¬Ëü»áÏÈ´´½¨Ä¿±ê±í£¬ÔÙ°ÑexcelÊý¾ÝдÈ뻺³åÇø£¬È»ºóÔÙ°Ñ»º³åÇøÊý¾ÝдÈëÄ¿±ê±í¡£ÎÊÌâ¾ÍÔÚ´´½¨Ä¿±ê±íºÍ
дÈ뻺³åÇø£¬sql
server»á¸ù¾ÝÏÖÔÚµÄexcelÖеÄÊý¾Ý¸ñʽÀ´Ð´È뻺³åÇøºÍ´´½¨Ä¿±ê±í¡£±ÈÈçexcelÖÐÓÐÒ»ÁÐΪ±àºÅ£¬ÀïÃæÊÇÊý×Ö£¬sqlserver¾Í»áÔÚÄ¿±ê±í
ÀィһÁнГ±àºÅ”£¬ÎªfloatÀàÐÍ.
¶ø¶ÔÓÚÎÒµÄexcelÎļþÖеÄ"²úƷ˵Ã÷"ÕâÒ»ÁУ¬ÊÇÎÄ×Ö£¬ÄÇsql
serverÈçºÎ½¨Á¢Ä¿±êÁлò»º³åÇøÄØ£¿ËüÔõô֪µÀ¸Ã°ÑÄ¿±ê½¨Á¢³Évarchar»¹ÊÇtextÄØ£¿¾­¹ý²âÊÔ£¬·¢ÏÖsql
serverÊÇÕâÑù×öµÄ£¬Ëû»áÈ¡excelÎļþÖеÄÇ°8ÐУ¨2µÄÈý´Î·½£©£¬È»ºóËãÕâ8ÐÐÀúƷ˵Ã÷”µÄ×î´ó³¤¶È£¬Èç¹ûÕâ8ÐÐÀï×µÄ >
255,ÔòÄ¿±êÁкͻº³åÇø¾Í»á½¨Á¢³ÉntextÀàÐÍ£¬·ñÔò¾Í½¨Á¢³ÉnvarcharÀàÐÍ¡£ÕâÑù£¬ÎÊÌâ¾ÍÀ´ÁË£¡¼ÙÉèÎÒµÄexcelÎļþÇ°8ÐГ²úƷ˵Ã÷”ÖÐ
¶¼ <
255£¬ÔòÄ¿±êºÍ»º³åÇø¾Í±»½¨Á¢Îªvarchar(255)ÀàÐÍÁË(ÕâÀï˵Ã÷һϣ¬Äã¿ÉÒÔÐÞ¸ÄÄ¿±ê±íµÄ×Ö¶ÎÀàÐÍ£¬µ«»º³åÇø³¤¶È»òÀàÐÍÊÇÎÞ·¨Ð޸ĵÄ)¡£¶øÈç
¹ûÎҵĵÚ10ÐÐÀúƷ˵Ã÷”µÄ³¤¶È³¬¹ýÁË255,Ôòsql serverÍù»º³åÇøÀïдµÄʱºò£¬×ÔÈ»¾Í·¢ÉúÁËÈçÉϵĴíÎó£ºÊý¾Ý¶ÔÓÚÖ¸¶¨µÄ»º³åÇøÀ´½²Ì«´ó¡£
ÕâÑù£¬ÎÒÃǵ¼Êý¾Ýµ±È»¾Íʧ°ÜÁË£¡Õâ¸öÒ²Ðí²»ÄÜËãbug,ÒòΪֻÊÇʵÏֵò»ºÃ(ȡijÁÐÇ°8ÐеÄ×î´ó³¤¶È²¢²»ÄÜÕæÕý´ú±íËùÓÐÐУ¬ÎÒÏë
microsoftµÄ¹¤³ÌʦΪÁ˼òµ¥»òÕßÌá¸ßÐÔÄܲÅÕâÑù×öµÄ)£»Ò²ÐíËãÊÇbug,ÒòΪ²»ÖªÇéµÄÓû§µ¼Êý¾Ýʧ°ÜÁË¡£¶øÇÒ²»ÖªµÀΪºÎ¶øʧ°ÜµÄ£¡
¹«Àí×ÔÔÚÈËÐÄ£¬Èôó¼Ò»òÄÇЩ¹¤³ÌʦÃÇÈ¥ÆÀÅаɣ¡
½â¾ö°ì·¨ £º
    ÐÞ¸Ä×¢²á±í£º
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Jet/4.0/Engines/Excel
ÏÂË«»÷ÓұߵÄ"TypeGuessRows"Ñ¡Ï½«"ÊýÖµÊý¾Ý"¸Ä³É0¡£ ÐÞ¸ÄÖ®ºó¹Ø»úÖØÐÂÆô¶¯¡£
Ô­ÒòÊÇ£º½«
excel±íµÄÊý¾Ýµ¼ÈëÊý¾Ý¿âµÄʱºò£¬JetÒýÇæ¸ù¾Ý"TypeGuessRows"Ñ¡ÏîµÄÖµËù´ú±íµÄÐÐÊýÅжÏÄÚÈݵÄÊý¾ÝÀàÐÍ£¬Ä¬ÈÏÊǸù¾ÝÇ°8ÐеÄÄÚÈÝÅÐ
¶ÏÊý¾ÝÀàÐÍ£¬Ð޸ijÉ0ºó£¬Ëü»á¶ÔÿÐеÄÄÚÈݽøÐÐÅжϣ¬²»¹ýÕâÑù×ö»áÓ°ÏìÐÔÄÜ¡


Ïà¹ØÎĵµ£º

SQL SERVERÊý¾ÝÀàÐÍÓëC#Êý¾ÝÀàÐͶÔÕÕ±í

bigint ´Ó -2^63 (-9223372036854775808) µ½ 2^63-1 (9223372036854775807) µÄÕûÐÍÊý¾Ý£¨ËùÓÐÊý×Ö£©¡£´æ´¢´óСΪ 8 ¸ö×Ö½Ú¡£ Int64
int ´Ó -2^31 (-2,147,483,648) µ½ 2^31 - 1 (2,147,483,647) µÄÕûÐÍÊý¾Ý£¨ËùÓÐÊý×Ö£©¡£´æ´¢´óСΪ 4 ¸ö×Ö½Ú¡£int µÄ SQL-92 ͬÒå×ÖΪ integer¡£ Int32
smallint ´Ó -2^15 (-32,768) µ½ ......

ÔÚpl/sql ÖиıäÁ㤶È

 
    
 
NO.1  
alter   table   pdt   modify("PDTNAME",varchar2(100))
NO.2  
×ֶβ»ÓÓ”  
  alter   table   pdt   modify(PDTNAME,varchar2(100)) &n ......

SqlÓï¾äѧϰ±Ê¼Ç(1) ´´½¨Êý¾Ý¿â

˵Ã÷£º´´½¨Ò»¸öÓ°µú×âÁÞ¹ÜÀíϵͳ£¬ÕâÀïÖ÷Òª³éÏóÁËËÄÕÅ±í£º
tb_user(Óû§ÐÅÏ¢),tb_movie_type£¨Ó°Æ¬ÀàÐÍ£©,tb_movie£¨Ó°Æ¬ÐÅÏ¢£©,tb_retal£¨×âÁ޼Ǽ£©
use master--ϵͳ±í£¬ËùÓд´½¨µÄÊý¾Ý¿â¾ùÔڴ˱»¼Ç¼
go
--¼ì²âÊÇ·ñÒѾ­´æÔÚRetaDBÕâ¸öÊý¾Ý¿â£¬ÓеĻ°£¬²»ÄÜÖØÃû£¬¿ÉÒÔ½øÐÐɾ³ý
if exists (select * from sysdatabas ......

SQL Server 2008 Resource Governor

 
Ò»¡¢ÎÊÌâÒý³ö£º
µ±Ä³Ò»Ì¨SQL ServerʵÀýÉÏ´´½¨Óжà¸öÊý¾Ý¿âµÄʱºò£¬Èç¹ûijһ¸öÊý¾Ý¿â¹ý¶ÈÕ¼ÓÐϵͳ×ÊÔ´£¬ÍùÍù»áµ¼ÖÂÆäËüÊý¾Ý¿âÐÔÄÜÊܵ½ÑÏÖØÓ°Ï죬ÉõÖÁ´ó´ó½µµÍÕû¸öÊý¾Ý¿âµÄÐÔÄÜ¡£
ÕâÖÖÇé¿öÏ£¬Èç¹ûÓÐÒ»ÖÖ¼¼Êõ»òÕß·½·¨¿ÉÒÔÏÞÖÆÊý¾Ý¿â×ÊÔ´µÄÕ¼ÓÐÁ¿£¬¸øÓëÒ»¸ö·åÖµ£¬´Ó¶ø¸øÓëÆäËüµÄÊý¾Ý¿â×ã¹»µÄ×ÊÔ´¡£ÄÇôÕâ¸öÎÊÌâ¾Í¿É ......

PL/SQL ¿ØÖƽṹ

ÔÚPL/SQLÖÐÒýÈëÁË¿ØÖƽṹ£¬°üÀ¨Ñ¡Ôñ½á¹¹£¬Ñ­»·½á¹¹ºÍÌøת½á¹¹
Ò» Ñ¡Ôñ½á¹¹
1,IF Óï¾ä
 
    ÔÚPL/SQLÖУ¬Ñ¡Ôñ½á¹¹¿ÉÒÔͨ¹ýifÓï¾äÀ´ÊµÏÖ£¬Ò²¿ÉÒÔͨ¹ýCaseÓï¾ä£¨oracle9iÖУ©
    ÀûÓÃifÓï¾äʵÏÖÑ¡Ôñ¿ØÖƵÄÓ﷨Ϊ£º
     if condition1 then statements1 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ