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

DelphiÖд¦ÀíSql±íµÄÎÊÌ⣡

    ÏÖÔÚÊý¾Ý¿âÖÐÓÐÒ»Õűí´æÔÚ£¬ÎÒÏëͨ¹ýDelphiÖ´ÐÐÒ»¸öSqlÓï¾ä£¨±ÈÈç¡°select column1 from table1¡±£©£¬ÎÒÔõô²ÅÄܽ«Õâ¸ösqlÓï¾äµÄÖ´Ðнá¹ûдµ½Êý¾Ý¿âÖÐÒ»ÕÅÒѾ­´æÔڵıíÖÐÄØ£¿ÕâÖÖ·½·¨¾Í²»ÒªËµÁË£ºÓÃADOQuery²éѯ£¬ÔÙÒ»¸ö¸ö¶ÁÒ»¸ö¸öд£¬ÕâÑùÌ«Âý£¬ÒòΪÊý¾ÝÁ¿ºÜ´ó£¨70WÐУ©¡£
    Çë¸ßÊÖÃǸø˼·£¬Ð»Ð»ÁË¡£
select into

±í½á¹¹ÏàͬµÄÇé¿ö£º
insert into ±í2
select * from ±í1

±í½á¹¹²»ÏàͬµÄÇé¿ö£º
insert into ±í2(column1, column2, column3)
select column1, column2, column3 from ±í1


ÒýÓÃ
±í½á¹¹ÏàͬµÄÇé¿ö£º
insert into ±í2
select * from ±í1

±í½á¹¹²»ÏàͬµÄÇé¿ö£º
insert into ±í2(column1, column2, column3)
select column1, column2, column3 from ±í1


¶¥Ò»¸ö!

лл¸÷룬ÎÒÂíÉÏÊÔÊÔÈ¥¡£

Äê·Ý ¹«Ë¾ ½±½ð1 ½±½ð2
09  A  10    100
10  A  20    200
09  A  32  3000
10  A  45  400

ÎÒÒªµÃµ½
Äê·Ý ¹«Ë¾ ½±½ð1 ½±½ð 
09  A  42    3100
10  A    65  600

ÇëÎÊsqlÓï¾äÔõôд°¡£¿

insert into  ±í1 (Äê·Ý, ¹«Ë¾, ½±½ð1, ½±½ð2 )select Äê·Ý, ¹«Ë¾, sum(½±½ð1),sum( ½±½ð2) from ±í2  group by Äê·Ý£¬¹«Ë¾

ÒýÓÃ
insert into  ±í1 (Äê·Ý, ¹«Ë¾, ½±½ð1, ½±½


Ïà¹ØÎÊ´ð£º

SQLÓï¾äЧÂÊÎÊÌâ - ÆäËûÊý¾Ý¿â¿ª·¢ / ÆäËûÊý¾Ý¿â

´ó¼Ò°ïæ¿´¿´Õâ2¸ösqlÓï¾äÄĸö²éѯµÄËٶȸü¿ìµã¡£Ð»Ð»°ïæ¡£±È½Ï׿±¡£ÔÚ×öÐÔÄܲâÊÔ¡£
select * from
  ±íA LEFT OUTER JOIN ±íB ON (±íA.id || ' ' =±íB.id) ,±íC , ±íD, ±íE
WhereÆäËûÌõ¼þ
select * ......

access ÖÐÖ´ÐÐsqlÓï¾äupdate²»³É¹¦£¬ÇóÖú£¡£¡£¡

access ÖÐÖ´ÐÐsql updateÓï¾äʱÓÐʱºò³É¹¦ÓÐʱºò²»³É¹¦£¬µ«ÊÇaccessÖв»³ö´íÎóÐÅÏ¢£¬²»ÖªµÀÊÇʲôԭÒò£¬ÓÐÄÄλ´óÏÀÖªµÀ£¬Çë°ïæ°¡
ÌùSQLÓï¾ä£¬¼ì²é±í¡¢×ֶεÄÓÐЧÐÔÉèÖÃ

sql ÔÚ²éѯ·ÖÎöÆ÷ÀïÃæ Ö´ÐкÜÕý³£

ÊÇ ......

ÔÚsqlÖÐʹÓÃoutputºÍ²»Ê¹ÓõÄÇø±ð£¿

ÔÚsqlÖÐʹÓÃoutputºÍ²»Ê¹ÓõÄÇø±ð£¿
ÀýÈ磺
ALTER PROCEDURE [dbo].[sp_1]
@SYS_LNNO varchar(20),
@SYS_CALLER varchar(20),
        @SYS_ORGANIZE varchar(10), ......

PythonÖеÄUnicodeÔÚDelphiÈçºÎ»¹Ô­³ÉGb2312£¿

ÒÑÖªPython ÖУº
s = unicode("²âÊÔ", "gb2312")
s = u'\u6d4b\u8bd5'
print s
²âÊÔ

ÔÚDelphiÀïÃæÈçºÎ½«\u6d4b\u8bd5ÕâÑùµÄ»¹Ô­³ÉGb2312µÄºº×ÖÄØ£¿
ÕÒµ½¸ö·½·¨
......

DELPHIÕâÖÖÇé¿öÔõô°ì£¿ - Delphi / Windows SDK/API

¾ÍÊÇÒ»¸ö·þÎñ¶ËºÍÒ»¸ö¿Í»§¶Ë£¬Àï±ßÓÐһЩ¹²Óõ¥Ôª £¬ÎÒÔÚ ¹¤³ÌµÄSEARCH PATHÀïÉèÖõÄ·¾¶£¬
Àï±ßÓиö½á¹¹Ì壬ÎÒÔÚ·þÎñ¶Ë´ò¿ª£¬¼ÓÁ˳ÉÔ±£¬µ«ÊÇÎÒÔÚ¿Í»§¶ËÆäËûµ¥Ôª·ÃÎʲ»µ½ÎÒмӵģ¬ÎÒÔÚ¿Í»§¶Ë´ò¿ªÄǸöµ¥Ôª£¬È·Êµ¼ÓÁ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ