Microsoft OLE DB Provider for SQL Server (0x80040E2F)
ÎÞ·¨½« NULL Öµ²åÈëÁÐ 'id'£¬±í 'blog.dbo.bigclass'£»¸ÃÁв»ÔÊÐí¿ÕÖµ¡£INSERT ʧ°Ü¡£
³öÎÊÌâµÄ´úÂëÊÇ£º
<%
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.C ......
ÈçÌ⣺
ͳ¼Æ±íÖÐ×òÌìÿ¸ô10·ÖÖӵļǼÊý¡£
ʱ¼ä¶ÎÖÐÓоÍÏÔʾ¾ßÌåcountÊý£¬Ã»ÓоÍÏÔʾ0£¡
SQL code:
create table tb(id number, dtime date)
insert into tb (id, dtime)
values (1, to_date('2010-05-26 15:17:06', 'dd-mm-yyyy hh24:mi:ss'))
/
insert into tb (id, dtime)
values (2, to_da ......
±ít1
3¸ö×Ö¶ÎCompanyName Product EntryDate
°´ÕÕʱ¼äÅÅÐòÏÔʾǰ10ÌõÊý¾Ý¡£
µ«ÊÇ£¬Ã¿Ò»¼Ó¹«Ë¾ËùÏÔʾµÄ²úÆ·¼Ç¼²»Äܳ¬¹ý2Ìõ¡£
Ò²¾ÍÊÇ˵£¬ÓпÉÄÜÇ°Ãæ10ÌõÊý¾Ý¶¼ÊÇͬһ¼Ò¹«Ë¾µÄ¡£ÄDz»ÐУ¬±ØÐëÒ»¼Ó¹«Ë¾¡£×î¶àÖ»ÄÜ2Ìõ¡£
ÕâÊÇÎÒÃæÊÔÅöµ½µÄÒ»¸öÎÊÌâ¡£¿àÏëÁ˺ܾã¬Ò²Î´ÄÜÍ»ÆÆ¡£»¹Çë¸ßÊÖÃÇÖ¸½Ì¡£Ð»Ð»£¡
Çó¸ßÊÖ£¬×Ô¼º¶ ......
select * from channel_tab where properity=%d order by prior",channelpro
Õâ¾äʲôÒâ˼°¡
ÌرðÊÇ"properity=%d ʲôÒâ˼
º¹ c?
ÎÒºÍÄãÒ»Ñù²Ë£¬Ã»¿´Ã÷°×¡£¡£
SQL code:
select * from channel_tab where properity=%d order by prior",channelpro
ÆÐÌá±¾ÎÞÊ÷
Ã÷¾µÒà·Ç̨
±¾À´Î ......
ÓбíÈçÏÂ
a b c
001 ÊÕÈë 5000
001 ·ÑÓÃ 2000
001 ºÏ¼Æ 3000
002 ÊÕÈë 6000
002 ·ÑÓÃ 3000
002 ºÏ¼Æ 3000
003 ÊÕÈë 4000
003 ·ÑÓÃ 1000
003 ºÏ¼Æ 2000
...
ºÏ¼Æ=ÊÕÈë-·ÑÓÃ
ÇóÒ»Óï¾ä ²éÕÒ³öµ±b=ÊÕÈëʱc×ֶβ»ÕýÈ·µÄ¼Ç¼
select ²»ÕýÈ·¼Ç¼=x.a from ta x join ta y on x.ºÏ¼Æ<>y.ÊÕÈë- ......
c# ÔÚ²Ù×÷SQLʱ¡£¼ÙÉèSQLûÓеǼ£¬ÔÚc#дµÄ¿Í»§¶ËÖÐÏëÒªÓÃÓï¾ä²Ù×÷¡£¿ÉÒÔÕâÑù²»£¿
²»¿ÉÒÔ¡£
ÏÈÁ¬Êý¾Ý¿â¡£
SQlûµÇ¼ÊÇɶÒâ˼£¿
Ò»°ã²Ù×÷Êý¾Ý¿âʱ ÏÈÒªÁ¬½Ó SqlConnection ¡£¡£¡£¡£
ÔÙ²Ù×÷
ʲôÒâ˼°¡£¬ÄãµÄÒâ˼ÊÇûÓÐÁ¬½Ó×Ö·û´®Âð£¿
SQL ûÓеǼÔõôÄÜÁ¬ÉÏÄØ
Á¬½ÓÊý¾Ý¿â²ÅÄܲÙ×÷£¬ÒªÓÐÒ»¸ö½»»¥µÄ¹ý³Ì£¬ ......