sqlÊý¾Ý¿â
dbGridä¯ÀÀ ±à¼
ÆäÖÐÒ»×Ö¶ÎΪÂß¼×Ö¶Î,µ±Ä³Ò»¼Ç¼µÄ¸Ã×Ö¶ÎÐÞ¸ÄΪTRUEʱ,ÆäËü¼Ç¼µÄ¸Ã×Ö¶ÎÈ«²¿ÎªFALSE
Ï£Íû¾ÍÔÚdbGridµÄijʼþÖÐÍê³É,Çë½Ì. (Ìṩ˵Ã÷»òÊÇ´úÂë¾ù¿É)
ÔÚÐÞ¸Ä×Ö¶ÎÖµ±£´æʱ£¬¼ÇסÐ޸ĵļǼµÄid£¬È»ºóupdate²»µÈÓÚ¸ÃidµÄÕâ¸ö×Ö¶ÎֵΪFalse£¬È»ºóÖØÐÂloadÊý¾Ý£¬ÔÙ¶¨Î»µ½Õâ¸öid¼Ç¼ÉÏ
ÎÒÏ£Íû ......
DELPHI Ôõô×Ի洰¿Ú£¿£¨²»ÊÇƤ·ô£¬ÊÇ´°¿ÚµÄËıߺͱêÌâÀ¸£¬Ò»¸ö¿ò¼ÜÄÇÑùµÄ£©
ÒªÔõôŪ£¿¸øÒ»µã˼·»ò°¸ÀýÒ²ºÃ
ÓÑÇé°ï¶¥
´¿APIʵÏÖ£¬¿ÉÒÔÓÃcreatewindow£¬¾ßÌå¿ÉÒԲο¼¡¶windows³ÌÐòÉè¼Æ¡·ºÍ¡¶DelphiºËÐÄAPI¡·
²»ÊÇ£¬ÎÒÊǽ«³ÌÐòµÄBorderStyleÉèΪbsNone£¬Ò²¾ÍÊÇÎޱ߿ò£¬ÎÒÒª×Ô¼º»æÖƱ߿ò£¬¶øÇÒ¿ÉÒÔÏñÆÕͨ´°¿ÚÒ»Ñù¿ÉÒ ......
adoconnection1.ConnectionString := 'driver={MySQL ODBC 3.51 Driver};server=localhost;uid=root;pwd=111111;database=xiamen';
adoconnection1.Open;
adodataset1.Connection := adoconnection1;
adodataset1.Active := false;
adodataset1.CommandText := 'select * from ......
DBGridÖеÄÁбȽ϶à
ÔÚQueryˢкóÈç¹ûÈÃËüÏÔʾÔÚijһÐУ¿
ÒýÓÃ
DBGrid1.SelectedIndex := ÄãÒªÏÔʾµÄÄÇÒ»ÐÐ;
²»ºÃÒâ˼£¬ÎÒд´íÁË£¬ÊÇijһÁС£¡£¡£
ÒýÓÃ
²»ÊǺÜÃ÷°×,ºÜ¶àÁÐÓëÐÐÓ¦¸Ãû¹Ø°É
ÊÇ·ñÏëҪˢкóµ±Ç°¼Ç¼ÈÔ±£³ÖÔÚË¢ÐÂÇ°?
ÄǸö¾Í¼òµ¥
ÏȽ«µ±Ç°¼Ç¼µÄ¹Ø¼ü×Ö·ÅÈëÒ»±äÁ¿
ˢкóÓÃlocate,Èç:
with Quer ......
ÎÊÌâÊÇÕâÑù×ÓµÄ
ÎÒÔÚform1Öж¨ÒåÁËÒ»¸ösk1:tsocket
È»ºóÔÚform2ÖÐ
ÓÃsk1 ·¢ËͶ«Î÷ ·¢Íêºó socket ×Ô¶¯¹Ø±ÕÁË~
µ«ÊÇÔÚform1Öз¢¶«Î÷ Èç¹ûÎÒ²»ÔËÐÐ closesocket µÄ»° ÊDz»»á¶ÏµôµÄ
ÎÊÏ ÕâÊÇÔõô»ØÊÂ
ÁíÎÒÔÚ form2 Àï¼ÓÁ˸ö
uses Unit1;
Ö±½Óµ÷ÓÃ sk1~
ÕâÑù×ÓÓ¦¸ÃûÎÊÌâ°É~
µ¥²½µ÷ÊÔÁËÏÂ~
type
t ......
ÎÒÊǸödelphi²ËÄñ£¬ÏÖÔÚÏëÒª±àÒ»¸ö³ÌÐò£¬ÊµÏÖͨ¹ýADO¶ÔÊý¾Ý¿âµÄÁ¬½Ó£¬ÒªÇó¶ÁÈ¡client¶Ë·¢¹ýÀ´µÄÏûÏ¢£¬ÈçÒ»¸öÐÕÃû£¬È»ºó´Óserver¶Ëͨ¹ýADOÁ¬½ÓÊý¾Ý¿â£¬´ÓÊý¾Ý¿âÖвéѯÓëÕâ¸öÐÕÃûÓйصÄÄÚÈÝ£¬Èç±àºÅ£¬ÐԱ𣬼®¹áµÈÏà¹ØÄÚÈÝ£¬×îºó·¢Ë͸øclient¶Ë¡£
ÎҵĻý·Ö²»¹»·¢µ½¼¼ÊõÇø
Çë¸ßÊִͽ̣¬×îºÃÄܹ»ÓÃADOQueryʵÏÖ²éѯ¡£
¶àл¶à ......