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

SQLÈÕÆÚʱ¼ä²»ÄÜÔçÓÚ1753Äê

SQLÈÕÆÚʱ¼ä²»ÄÜÔçÓÚ1753Äê
   
1.¹«ÔªÔªÄêµÄµÚÒ»Ì죬Ҳ¾ÍÊǹ«Ôª1Äê1ÔÂ1ÈÕ£¬ÄÇÌìÊÇÐÇÆÚÁù¡£
    2.
ÏÖÐеĹ«ÀúÊǸñÀû¸êÀïÀú·¨£¬Õâ¸öÀú·¨²¢²»ÊÇÁ¬ÐøµÄ£¬ÖмäȱÉÙÁË11Ìì¡£1752Äê9ÔÂ2ÈյĺóÒ»Ìì²¢²»ÊÇ9ÔÂ3ÈÕ£¬¶øÊÇ9ÔÂ14ÈÕ¡£Ò²¾ÍÊÇ˵£¬´Ó1752Äê9ÔÂ3ÈÕµ½9ÔÂ13ÈÕµÄ11Ìì²¢²»´æÔÚ¡£
    3.ĨµôÕâ11ÌìÊÇÓÉÓ¢¹úÒé»áÔÚ1752Äê×ö³öµÄ¾ö¶¨¡££¨ÏêÇé¼ûÈçÏÂ
“ÀúÊ·µÄ¿Õ°×”
£©
    ……
 
    ΢ÈíºÍSybaseÁ½´ó¹«Ë¾¾ö¶¨²»ÔÊÐíÔÚ¸÷×ÔÊý¾Ý¿âµÄÈÕÆÚÐÍÊý¾ÝÔçÓÚ1753Äê
£¬Èç¹ûÏëʹÓÃÔçÓÚ1753ÄêµÄÈÕÆÚ£¬¾Í²»ÄÜÓÃÈÕÆÚÐ͸ñʽ£¬µÃÏë±ðµÄ·¨×Ó¡£
---------------------------------------------------------------------------------------------------------
ÀúÊ·µÄ¿Õ°×£º1582Äê10ÔÂ5ÈÕÖÁ10ÔÂ14ÈÕ£¨Ó¢¹ú£º1752Äê9ÔÂ3ÈÕÖÁ13ÈÕ£©
ÔÚÏÖÔÚͨÐеÄÀú·¨¼ÇÔØÉÏ£¬È«ÊÀ½ç¾ÓÈ»ÓÐÊ®ÌìûÓÐÈκÎÈ˳öÉú¹ý£¬Ò²Ã»ÓÐÈκÎÈËËÀÍö¹ý£¬Ò²Ã»Óз¢Éú¹ý´ó´óССֵµÃ¼ÍÄîµÄÈË»òÊ¡£Õâ¾ÍÊÇ1582Äê10ÔÂ5ÈÕÖÁ10ÔÂ14ÈÕ 
³ÖÐøʱ¼äΪ0µÄÒ»ÄêÊÇʲôÒâ˼£¿ 
ÊÂʵÉÏ£¬Ä¿Ç°ÊÀ½çͨÐеĹ«ÀúÖУ¬¾ÍÓгÖÐøʱ¼äΪ0µÄ10Ì죬¼´¹«Ôª1582Äê10ÔÂ5ÈÕÖÁ14ÈÕ¡£ÊÂÇéÊÇÕâÑùµÄ£º 
Î÷
·½Àú·¨µÄµÚÒ»´Î¸Ä¸ïÊÇÂÞÂíÖìÀûÎÚ˹·¿­Èö´óµÛÓÚ¹«ÔªÇ°45ÄêÇ××ÔÒý½øµÄ¡£µ±Ê±²ÉÓõÄÊý×ÖÊÇÒ»Äê365.25Ì죬ÓÚÊÇÖìÀû°²Àú·¨³ÉΪ×î¼òµ¥µÄÀú·¨£ºµÚÒ»¡¢
¶þ¡¢ÈýÄ궼ÊÇ365Ì죬ÈýÄêÓàϵÄ0.25Ìì¸øµÚËÄÄ꣬µÚËÄÄê¾ÍÓÐ366Ì죬Õâ¾ÍÊÇÈòÄê¡£ÓÚÊÇÖظ´365£¬365£¬365£¬366µÄÖÜÆÚ£¬Ã¿Ä궼ÊÇÕû
Êý¡£ 
µ«ÊÇ£¬Ò»¸öÌ«ÑôÄê²»¸ÕºÃÊÇ362.25Ì죬¶øÊÇ
362.242199…Ì죬ÿÄêÏà²î11·Ö14Ã룬Ҳ¾ÍÊÇÖìÀû°²Àú·¨ÖÐÿÄê¶àËãÁË11·ÖÖÓ14Ãë¡£ÓÉÓÚÎó²î²»Ì«´ó£¬Í·¼¸Äêûʲô¹Øϵ£¬¿­Èö»î×ÅʱӰÏ컹²»
´ó¡£µ«ÊÇ£¬Ò»ÄêÓÖÒ»Ä꣬Îó²îÀÛ»ýÆðÀ´£¬ÖìÀû°²Àú·¨¾ÍÓëʵ¼ÊµÄÌ«ÑôÄê²»ºÏÅÄÁË¡£ÀýÈçÿÄê´º·ÖÔÚ3ÔÂ21ÈÕÇ°ºó£¬µ«¼¸¸öÊÀ¼Íºó£¬´º·ÖÔÚÖìÀû°²Àú·¨ÉϵÄÈÕÆÚÔ½À´
Ô½ÌáÇ°ÁË£¬Õâ¶ÔÅ©ÃñÖֵز»·½±ã£¬¶Ô½Ì»áÈ·¶¨¸´»î½ÚÔÚÄÄÒ»ÌìÒ²´øÀ´Âé·³¡£ÓÉÓÚÖìÀû°²Àú·¨ÊÇ¿­ÈöÇ××ÔÖƶ¨µÄ£¬ÉÏÊöÇé¿ö¶ÔËûµÄÍþÐÅÊÇÒ»¸ö³ÁÖØ´ò»÷¡£ 
16
ÊÀ¼Íʱ£¬½Ì»Ê¸ñÀû¸êÀï°ËÊÀ½øÐÐÁËÒ»´ÎУÕý¡£ÒòΪµ½16ÊÀ¼Í£¬Ã¿Äê11·Ö14ÃëÒѾ­ÀÛ»ý³É10Ì죬Ҳ¾ÍÊÇÀú·¨É϶àÁË10Ì죬Õâ¶ÔÓÚÈ·¶¨¸´»î½ÚÔì³ÉÑÏÖØÀ§ÄÑ£¬
²»µÃ²»²ÉÈ¡´ëÊ©²¹¾È¡£Îª´Ë£¬¸ñÀû¸êÀï²ÉÈ¡Á˽â¾ö´ËÀàÄÑÌâµÄ×î¹ÅÀ


Ïà¹ØÎĵµ£º

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓ㨶þ£©

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓ㨶þ£©
×÷Õߣºfreedk
Ò»¡¢ÉîÈëdz³öÀí½âË÷Òý½á¹¹
¸ÄÉÆSQLÓï¾ä
¡¡¡¡ºÜ¶àÈ˲»ÖªµÀSQLÓï¾äÔÚSQL SERVERÖÐÊÇÈçºÎÖ´Ðеģ¬ËûÃǵ£ÐÄ×Ô¼ºËùдµÄSQLÓï¾ä»á±»SQL SERVERÎó½â¡£±ÈÈ磺
select * from table1 where name=''zhangsan'' and tID > 10000
ºÍÖ´ÐÐ:
select * from table1 where tID ......

SQL SERVER 2000/2005 ÁÐתÐÐ ÐÐתÁÐ


ÆÕͨÐÐÁÐת»»
ÎÊÌ⣺¼ÙÉèÓÐÕÅѧÉú³É¼¨±í(tb)ÈçÏÂ:
ÐÕÃû ¿Î³Ì ·ÖÊý
ÕÅÈý ÓïÎÄ 74
ÕÅÈý Êýѧ 83
ÕÅÈý ÎïÀí 93
ÀîËÄ ÓïÎÄ 74
ÀîËÄ Êýѧ 84
ÀîËÄ ÎïÀí 94
Ïë±ä³É(µÃµ½ÈçϽá¹û)£º
ÐÕÃû ÓïÎÄ Êýѧ ÎïÀí
---- ---- ---- ----
ÀîËÄ 74 84 94
ÕÅÈý 74 83 93
-------------------
*/
create table tb(ÐÕÃû varc ......

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓã¨ËÄ£©

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓã¨ËÄ£©
×÷Õߣºfreedk
Ò»¡¢ÉîÈëdz³öÀí½âË÷Òý½á¹¹
¶þ¡¢¸ÄÉÆSQLÓï¾ä
Èý¡¢ÊµÏÖСÊý¾ÝÁ¿ºÍº£Á¿Êý¾ÝµÄͨÓ÷ÖÒ³ÏÔʾ´æ´¢¹ý³Ì
¾Û¼¯Ë÷ÒýµÄÖØÒªÐÔºÍÈçºÎÑ¡Ôñ¾Û¼¯Ë÷Òý
¡¡¡¡ÔÚÉÏÒ»½ÚµÄ±êÌâÖУ¬±ÊÕßдµÄÊÇ£ºÊµÏÖСÊý¾ÝÁ¿ºÍº£Á¿Êý¾ÝµÄͨÓ÷ÖÒ³ÏÔʾ´æ´¢¹ý³Ì¡£ÕâÊÇÒòΪÔÚ½«±¾´æ´¢¹ý³ÌÓ¦ÓÃÓÚ“°ì ......

SQL Server JDBC Deriver Problems

If the SQL data type is 'timestamp', we need to use ResultSet.getBytes() to retrieve its value. If the SQL data type is 'datetime', we can use ResultSet.getTimestamp(). It is said timestamp is interanlly saved as binary data.
  try {
     Class.forName("com.microsoft. ......

SQLʱ¼äº¯ÊýÏêϸ˵Ã÷

1. µ±Ç°ÏµÍ³ÈÕÆÚ¡¢Ê±¼ä
select getdate()
2. dateadd ÔÚÏòÖ¸¶¨ÈÕÆÚ¼ÓÉÏÒ»¶Îʱ¼äµÄ»ù´¡ÉÏ£¬·µ»ØÐ嵀 datetime Öµ
ÀýÈ磺ÏòÈÕÆÚ¼ÓÉÏ2Ìì
select dateadd(day,2,'2004-10-15') --·µ»Ø£º2004-10-17 00:00:00.000
3. datediff ·µ»Ø¿çÁ½¸öÖ¸¶¨ÈÕÆÚµÄÈÕÆÚºÍʱ¼ä±ß½çÊý¡£
select datediff(day,'2004-09-01','2004-09-18') --· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ