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

sqlÓï¾ä´íÎó - Delphi / Êý¾Ý¿âÏà¹Ø

¶¨Òå±äÁ¿s,sqlΪstringÀàÐÍ£¬sΪº¯Êý²ÎÊý£¬sql£º='select field1 from table1 where'+s;ÔËÐÐʱs¸³ÖµÎªid>7»òÕßid<7¡¢id=7,µ«ÊÇÔËÐÐʱ×ÜÊdzö´í£¬Çë¸÷λ°ïÎÒ¸Ä´í£¬¶àл£¡

showMessage(sql)Ï¿´¿´

sql£º='select field1 from table1 where '+s;
ÓпÉÄÜwhereºó±ßÒª¼Ó¸ö¿Õ¸ñ

ÊÇ¿Õ¸ñ

¸Ðл2룬2Â¥Â鷳˵Ïêϸһµã£¬Äã˵µÄ¿Õ¸ñÊǺÍÂ¥ÉϵÄÒ»ÑùÂð

×Ö·û´®Á¬ÔÚÒ»ÆðÁË£¬ÔËÐÐʱSQLµÄÖµ='select field1 from table1 whereid>7'¡£ÒªÔÚwhereºóÃæ¼ÓÒ»¸ö¿Õ¸ñ×Ö·û£¬¾Í»á±ä³É£º'select field1 from table1 where id>7'£¬Æäʵ2¥˵µÃºÜÃ÷°×À²£¬×Ô¼ºµ÷ÊÔÏÂÂï

ÔΡ£¡£¡£ÊÇ1Â¥¡£¡£¡£sorry¡£¡£¡£

ȷʵÊÇÕâÑùµÄ



End_rbody_64695987//-->
¸Ã»Ø¸´ÓÚ2010-04-16 08:58:16±»¹ÜÀíԱɾ³ý



¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ
¾Ù±¨
¹ÜÀí
TOP








cloudysoul
(cloudysoul)

µÈ¡¡¼¶£º



#8Â¥ µÃ·Ö£º10»Ø¸´ÓÚ£º2010-04-15 20:26:35


sql£º='select field1 from table1 where'+s
ÕâÑùд²»Ì«ºÃ°É
¸Ä³ÉÕâÑùÊÔÒ»ÊÔ£º
sql£º='select field1 from table1'£»
if (Ìõ¼þ) then
sql:=sql+'where id>7';
if (Ìõ¼þ) then
sql:=sql+'where id<7';
if (Ìõ¼þ) then
sql:=sql+'where id=7';

ÐÂÊֻشðÎÊÌ⣬¼ûЦÁË£¡

ÉÙÁ˸ö¿Õ¸ñ°É

showMessage(sql)Ï¿´¿´

Òª²»°Ñ´íÎóÌùÉÏÀ´£¡

ÔÎÓ´¡¢Ã»¿Õ¸ñŶ¡¢

Ó¦¸ÃÊÇÉÙ¿Õ¸ñ£¬ÎÒÒ²Óöµ½¹ýÀàËÆÇé¿ö¡­¡­

¿ÉÄÜÊÇ¿Õ¸ñµÄÔ­Òò£¬¸Ä³É
sql£º='select field1 from table1 where '+s
×îºÃÑø³ÉÏ°¹ß£¬ÔÚ×Ö·ûÏà¼ÓÇ°£¬¶¼Ô¤ÁôÏ¿ո


Ïà¹ØÎÊ´ð£º

sqlÓï¾ä¶à±í¶à×ֶβéѯ - MS-SQL Server / »ù´¡Àà

ÎÒÓжà¸ö±íA B C ½á¹¹ÊÇÒ»ÑùµÄ£¬¶¼ÓÐ2¸ö×Ö¶ÎnameºÍcontent,ÎÒÒªËÑË÷ËùÒÔ±íËùÓÐ×Ö¶ÎÖаüº¬¡°Öйú¡±µÄÄÚÈÝ Õâ¸öSQLÓï¾äÔõôд 

ÈçºÎ½«¶à¸ö±íµÄ²éѯ½á¹ûÁ¬³ÉÒ»¸ö±í Õâ¸öSQLÓï¾äÔõôд ±íµÄ½á¹¹ÊÇÒ»ÑùµÄ
ÀýÈç£ ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

sqlserver´íÎó - MS-SQL Server / ÒÉÄÑÎÊÌâ

sqlserver2005 ½¨Á¢µÄÊý¾Ý¿â£¬ÓëÊÖ³Öpda´«ÊäÊý¾Ý£¬×î½üͻȻ³öÏÖÎÞ·¨´«µÝÊý¾ÝµÄÎÊÌ⣬pda¶ËÌáʾµÄ´íÎóʱoutofmemoryexception£¬µ«ÊÇpdaÉÏÃæµÄÈÝÁ¿Ã»ÓÐÎÊÌ⣬
sqlserverµÄÈÕ×ÓÉϵĴíÎóÈçÏ£º
ÈÕÆÚ 2010-1-25 14:45: ......

MS SQL×÷ÒµÎÊÌâ - MS-SQL Server / Ó¦ÓÃʵÀý

ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬
»òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡
ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡
֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡
°ïUP

²Î¿¼:http://hi.baidu.com/toiota ......

¸¶·ÑÇódelphiÆ´Òô±à³Ì - Delphi / ·Ç¼¼ÊõÇø

¾ßÌåÒªÇóÓ뱨³êQQ729851670
771234717

¡°Æ´Òô±à³Ì¡±ÊÇʲôÒâ˼

ÒýÓÃ
¡°Æ´Òô±à³Ì¡±ÊÇʲôÒâ˼
1.¸øÒ»¸ö×Ö¿ÉÒÔÏÔʾƴÒô£¬¶àÒô×ֵĻ°ÄÜÏÔʾ¶ÔÓ¦µÄ¶à¸öÆ´Òô
2.¶Ô°üº¬¶àÒô×ֵĴÊÓïÖÇÄÜʶ±ð¸ø³öÆ´Òô¡£
3.¶ÔÒ»¶Î ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ