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

sqlÓï¾ä

create table jskb(
񅧏 int identity(1,1) primary key not null,
ÐÕÃû varchar(20) not null,
ÐÔ±ð char(1) not null ,
ÊÚ¿ÎÃû varchar(10) not null,
½ÌÊҺŠint(10)
)

´íÄÄÄØ£¿
create table jskb(
񅧏 int identity(1,1) primary key not null,
ÐÕÃû varchar(20) not null,
ÐÔ±ð char(1) not null ,
ÊÚ¿ÎÃû varchar(10) not null,
½ÌÊҺŠint
)

ÄÜ˵Ã÷Ô­ÒòÂð£¿


²»ÄܶÔÊý¾ÝÀàÐÍ int Ö¸¶¨Áпí

¸ÄΪ£º
create table jskb(
񅧏 int identity(1,1) primary key not null,
ÐÕÃû varchar(20) not null,
ÐÔ±ð char(1) not null ,
ÊÚ¿ÎÃû varchar(10) not null,
½ÌÊҺŠint
)

ÒòΪ£º²»ÄܶÔÊý¾ÝÀàÐÍ int Ö¸¶¨Áпí


Ïà¹ØÎÊ´ð£º

ÇóSQL£¿

´ó¼ÒºÃ£¬ÇëÎÊÔÚ±íMÖÐÓÐ×ֶΣºa b c d e 
ÎÒÏë²é³öÆäÖÐÂú×ãÏÂÃæÈÎÒâÒ»ÏîµÄÊý¾Ý£¬1.×Ö¶Îa µÄÖµ²»ÊÇ ¡®Êé»ò±Ê»ò±¾¡¯ÖÐÈÎÒ»£¬2.aΪÊéµÄʱºò×Ö¶Îb,cÊÇ¿Õ;3.µ±aֵΪ±ÊµÄʱºòdÊÇ¿Õ;4.µ±aΪ±¾µÄʱºòb,d,e¶¼ÊÇ¿Õ;5.È ......

sql server ´æ´¢¹ý³ÌÑ­»·¸³ÖµµÄÎÊÌâ

СµÜÊǸöÐÂÊÖ ÏÖÔÚÓиöÎÊÌâÒ»Ö±²»Äܽâ¾ö
ÀýÈç
procedure produce_proc
    @p001 nvarchar(8000),
    @p002 nvarchar(8000),
    @p003 nvarchar(8000),
  & ......

¹ØÓÚgroup byµÄsqlÓï¾ä£¿

  with adod_dict do
    begin
    close;
    commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......

sql ÎÊÌâ

DateTime startTime=DateTime(em_1.Text)
DateTime endTime=DateTime(em_2.Text)

string sql
sql = dw_1.GetSQLSelect()+"Where (StartTime> '"+startTime+"') and (EndTime ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ