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

¼òµ¥µÄSQLÎÊÌâ - .NET¼¼Êõ / ASP.NET

СµÜÔÚ×ö²éѯÆ÷µÄʱºòÓõ½
 string str = "select *from Info where 1=1 ";//1=1ΪÓÀÕæÀ´ÊµÏÖÆ´½Ó²éѯÌõ¼þÆ´½Ó¡£
µ«ÎÒÏëʵÏÖÆ´½Óºó°´Ê±¼äÅÅÐò¼´
 string str = "select *from Info where 1=1 order by Published Desc";//1=1ΪÓÀÕæ
È´³öÏÖÎÊÌâÁË£¬ÏÂÃæÊÇ´íÎóÌáʾ
Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'Publishedand Ttype like '%%' or Bname like '%%' or Area like '%%' or address like '%%' or Fee like '%%' or Houspro like '%%' or Tnature like '%%' or Unit like '%%' or Comyears like '%%' or Payments like '%%' or Traffic like '%%'' ÖС£ 



Çë½Ì¸÷λ¸ßÊÖ¸ÄÈçºÎ½â¾ö£¬O(¡É_¡É)Oлл
..Ã×¼û¹ýÕâÖÖ´í

string str = @"select * from Info where 1=1 order by Published Desc";
*ºóÃæÓ¦¸ÃÓиö¿Õ¸ñ£»
where Ìõ¼þºóÖ»ÄÜÊÇ£ºcolumnÏà¹ØµÄÌõ¼þ
£»
ºÍÕâÑùûÓÐÇø±ð°¡£º
string str = @"select * from Info order by Published Desc";

ÒýÓÃ
string str = @"select * from Info where 1=1 order by Published Desc";
*ºóÃæÓ¦¸ÃÓиö¿Õ¸ñ£»
where Ìõ¼þºóÖ»ÄÜÊÇ£ºcolumnÏà¹ØµÄÌõ¼þ
£»
ºÍÕâÑùûÓÐÇø±ð°¡£º
string str = @"select * from Info order by Published Desc";


ÐǪ̈µÄ²»¶Ô°¡

ÒýÓÃ
..Ã×¼û¹ýÕâÖÖ´í


ÎÒÓõÄÊÇACCESSÊý¾Ý¿â

ÒýÓÃ
СµÜÔÚ×ö²éѯÆ÷µÄʱºòÓõ½
string str = "select *from Info


Ïà¹ØÎÊ´ð£º

sqlССµÄÒÉÎÊ - .NET¼¼Êõ / C#

¿ÉÄÜÒòΪ¹¤×÷µÄÔ­Òò ½Ó´¥Êý¾Ý¿âÕâ¿é±È½ÏÉÙ£¬Ö®Ç°¶¼ÊÇ×ö³ÌÐòÕâ¿é£¬Êý¾Ý¿âÕâ¿é¶¼ÓÐרÃŵÄÈËÀ´×ö ·Ö¹¤¶¼ºÜÃ÷ϸ ËùÒÔ¶ÔÊý¾Ý¿âÕâÒ»¿éÍêÈ«²»Á˽⡣ǰ¶Îʱ¼ä È¥ÃæÊÔÁ˼¸¼Ò¹«Ë¾ ¼¸ºõ¶¼ÊÇÔÚÊý¾Ý¿âÕâ¿é¹ÒµôµÄ Á¬¸ö¼òµ¥µÄSQ ......

ÇóÒ»sqlÓï¾ä - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄǰ2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......

¹ØÓÚSqlµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡


¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡

Ö±½ÓÖ´ÐоÍÐÐÁË

exec ......

ASPÒ³ÃæÎÞ·¨´ò¿ªÇóÖú£¡ - MS-SQL Server / »ù´¡Àà

¸÷λºÃ£¬ÎÒ¸Õ°ÑÒ»¸öASPÍøÕ¾ÉèÖúÃÁË£¬Ò²ÄÜÕý³£·ÃÎÊ¡£µ«ÊÇÔÚÎÒ±¾»úÉϲ»ÄÜ´ò¿ªadmin\login.asp,ËùÒÔÎÞ·¨ÊµÏÖºǫ́¹ÜÀí¡££¨´íÎóÌáʾÎÞ·¨ÕÒµ½ÍøÒ³£¬´úÂë404£¬ÎҵIJÙ×÷ϵͳÊÇwin2000 server)
µ«ÊÇÆæ¹ÖµÄÊÇÔÚ¾ÖÓòÍøµÄÆäËû» ......

Accessͨ¹ýSqlÓï¾ä´´½¨Êý¾Ý¿â - .NET¼¼Êõ / C#

ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
  C=ID T="INTEGER" P=No M=No N="±àºÅ" Z=false,
  C=Ques ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ