Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : sql

Çë½Ì¸öSQL²éѯÎÊÌâ - Oracle / ¿ª·¢

ÎÒÏÖÔÚÓÐÒ»Õűí ÀïÃæÓÐÁ½Ìõ¼Ç¼
name time
ÕÅ 3
Íõ 2
ÏÖÔÚÎÒÏëÒªµÃµ½µÄ½á¹ûÊÇtimeÊǼ¸¾Í»á²éѯ³ö¼¸Ìõ
name time
ÕÅ 1
ÕÅ 1
ÕÅ 1
Íõ 1
Íõ 1
Ôõô×ö
-- ÕâÑùÕû£ºÓÐÒâÒåÂð£¿

µ±È»ÓÐÒâÒåÁË£¬ÎÒÄõıíÖ»²»¹ýÊǾٸöÀý×Ó£¬Êµ¼ÊÓô¦µ±È»ÓÐÁË¡£ÎÒÔÚÕâÀïÖ»²»¹ýÊÇ°ÑÀý×ÓÃèÊöµÄ¼ò»¯ÁË¡£

ºóÃæµÄtime×ֶΠ......

ÇóSql Óï¾äµÄд·¨ - MS-SQL Server / ÒÉÄÑÎÊÌâ

±íÃû : tb1
×Ö¶ÎÃû³Æ: ID a
×Ö¶ÎÖµ : 1 10667766*X06*KYG08B01L18XU01*V4_10667766*X06*KYG08B01L18XU01*V4
2 10667766*X06*KYG01TSTSHELU01_10667766*A53*KYG01TSTSHELU01_10667766*X06*KYG01TSTSHELU01*V4
3 10668001*2KY*KYM01B01L18XU01*V4
4 1062376664*4*KYG08B01L18XU01*V4_106 ......

Çë½ÐÒ»¸ösql - MS-SQL Server / »ù´¡Àà

ÎÒÏëʵÏֵŦÄÜÊÇ°ÑÒ»ÁÐÖÐÓÐ2¸öÃû×ֵĽøÐзָ±ä³É2ÐУ¬²»ÖªµÀÔõôʵÏÖ£¿

SQL code:
/*
Ãû³Æ£ºfn_splitº¯Êý.
¹¦ÄÜ£ºÊµÏÖ×Ö·û´®·Ö¸ô¹¦Äܵĺ¯Êý
*/
create function dbo.fn_split(@inputstr varchar(8000), @seprator varchar(10))
returns @temp table (a varchar(200))
as
begin
declare @i int
set @ ......

Çë½ÌSQLת»»×Ö·ûÎÊÌâ - .NET¼¼Êõ / ASP.NET

SQL code:

declare @pagecount int
declare @sql varchar(500)
set @pagecount=10
set @sql='select top '+cast(@pagecount as varchar(10))+' * from book order by [ID] desc'
exec (@sql)
Ö´Ðлᱨ´í¡°ÔÚ½« varchar Öµ 'select top 10 * from book order by [ID] desc' ת»»³ÉÊý¾ÝÀàÐÍ int ʱʧ°Ü¡£¡±
ÇëÎÊÕâ ......

ÇóÒ»¶Îsql²éѯ´úÂë - .NET¼¼Êõ / C#

ÎÒÏÖÔÚµÄÇé¿öÊÇÕâÑù£º
ÓÐÒ»¸öÊý¾Ý¿â½Ðsyslogd£¬
¿âÀïÃæÓкܶà±í£¬Ãû×ÖÖîÈ磺log_http_20100513,log_http_20100514,log_http_20100515,log_http_20100516,log_http_20100517........
ÏÖÔÚÖ»ÄÜÒ»ÌìÒ»Ìì°´ÌìËÑË÷¡£
ÎÒÏÖÔÚµÄÐèÇóÊÇ£ºÎҵIJéѯ½çÃæÓÐÁ½¸öʱ¼ä¿Ø¼þ£¬Ñ¡Ôñ¿ªÊ¼Ê±¼äºÍ½áÊøʱ¼äºó¿ÉÒÔ´ÓÕâÁ½¸öʱ¼ä¶ÎÄڵıíÀïÃæ°ÑËù ......

SQLÓï¾ä OR ´æ´¢¹ý³Ì£¿ - .NET¼¼Êõ / C#

Ö´ÐÐÊý¾Ý¿â²Ù×÷ʱ£¬Ö±½ÓÓÃSQL Óï¾äºÃһЩ »¹ÊÇÓô洢¹ý³Ì¸ü¼ÑÄØ£¿
¸÷ÊãÆð¼û
Õâ¸öµÄ¾ßÌåÎÊÌâ¾ßÌå·ÖÎö
¼òµ¥µÄselect ¡¢updateºÍinsertµ±È»sql½â¾öÁË
¸´ÔӵķÅÔÚsql·þÎñ¶ËÓ¦¸ÃºÃµã

Â¥Ö÷Çë²ÎÔÄ
http://msdn.microsoft.com/zh-cn/library/ms973918(v=MSDN.10).aspx

ÄÜÓÃsqlÓï¾äʵÏֵIJ»ÒªÓô洢¹ý³Ì£¬¸´ÔӵŦÄܺÍÂß¼ ......
×ܼǼÊý:3315; ×ÜÒ³Êý:553; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [3] [4] [5] [6] 7 [8] [9] [10] [11] [12]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ