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

SQL 2000 ·ÖÒ³

SELECT TOP 10 *
from HumanResources.Employee
WHERE EmployeeID NOT IN (SELECT TOP 0 EmployeeID from HumanResources.Employee ORDER BY EmployeeID desc)
ORDER BY EmployeeID desc
————————————————————
SELECT TOP ·ÖÒ³´óС * from ±íÃû where Ö÷¼ü  not in (select top µ±Ç°Ò³¼õ1*·ÖÒ³´óС from ±íÃû order by Ö÷¼ü)
order by Ö÷¼ü


Ïà¹ØÎĵµ£º

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 inÓÅ»¯

¿Í»§·´Ó³³ÌÐòºÜÂý£¬¿ªÊ¼ÒÔΪÊý¾ÝÁ¿´ó£¬ÔÚ±íÖвéѯʹÓõÄ×Ö¶ÎÉÏ£¬Ìí¼ÓÁËË÷Òý£¬Ã»ÓÐÃ÷ÏÔµÄЧ¹û£¬¼ì²éʱ·¢ÏÖÒÔǰµÄͬÊÂÔÚsql serverÖÐдµÄº¯ÊýÖÐʹÓÃÁËin£¬¶øÔÚinµÄ½á¹û¼¯ÖлáÓÐ2500Ìõ¼Ç¼×óÓÒ£¬Ö´ÐÐʱ¼äÐèÒª13Ãë¡£ÕÒµ½ÎÊÌâ¸ùÔ´£¬
Ð޸ķ½·¨£º °ÑinºóÃæµÄ×Ó²éѯ×÷Ϊһ¸ö±íºÍÖ÷±í¹ØÁª£¬Ìí¼ÓÏÞÖÆÌõ¼þ¡£
Ô­À´Ð´·¨£º select * fro ......

SQL´æ´¢¹ý³ÌÖÐSELECTÓëSET ¶Ô±äÁ¿¸³ÖµµÄÇø±ð

²Î¿¼£ºhttp://gaowenjie7758.blog.163.com/blog/static/5946788920091116244306/
SQL´æ´¢¹ý³ÌÖÐSELECTÓëSET ¶Ô±äÁ¿¸³ÖµµÄÇø±ð
SQL Server ÖжÔÒѾ­¶¨ÒåµÄ±äÁ¿¸³ÖµµÄ·½Ê½ÓÃÁ½ÖÖ£¬·Ö±ðÊÇ SET ºÍ SELECT¡£¶ÔÓÚÕâÁ½ÖÖ·½Ê½µÄÇø±ð£¬SQL Server Áª»ú´ÔÊéÖÐÒѾ­ÓÐÏêϸµÄ˵Ã÷£¬µ«ºÜ¶àʱºòÎÒÃDz¢Ã»ÓÐ×¢Ò⣬ÆäʵÕâÁ½ÖÖ·½Ê½»¹ÊÇÓкܶ ......

sql server 2000 Êý¾Ý¿âÔ¶³Ì±¸·Ý

EXEC sp_configure 'show advanced options', 1
declare @strdirname varchar(100)
declare @RemotePathstr varchar(100)
declare @LocalPathstr varchar(100)
declare @DBName char(50)
declare @sql varchar(100)
set @strdirname=replace(substring(convert(varchar(20),getdate(),120),1,10),'-','') --»ñµÃÈÕÆÚ ......

SQL ServerÖ®·Ö²¼Ê½ÊÂÎñ

SQL ServerÖ®·Ö²¼Ê½ÊÂÎñ
 
 ÊÕ²Ø
--> Title  : SQL ServerÖ®·Ö²¼Ê½ÊÂÎñ
 
--> Author : wufeng4552
 
--> Date   : 2009-11-11
 
SQL ServerÖ®·Ö²¼Ê½ÊÂÎñ
 
(Ò»)¸ÅÄî:
 
·Ö²¼Ê½ÊÂÎñÊÇÉæ¼°À´×ÔÁ½¸ö»ò¶à¸öÔ´µÄ×ÊÔ´µÄÊÂÎñ¡£Microsoft® SQL Serv ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ