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

µÚ10Õ£ºSQLºÍTQuery¶ÔÏó

±¾ÕÂÊǹØÓÚ²éѯ¡£ÕâÊÇÒ»¸öÖ÷Ì⣬ÔÚºËÐĵĿͻ§/·þÎñÆ÷±à³Ì£¬Òò´ËÕâÊDZ¾Êé¸üÖØÒªµÄƪÕÂÖ®Ò»¡£
¸Ã²ÄÁϽ«±»·Ö³ÉÒÔÏÂÖ÷Òª²¿·Ö£º
ʹÓÃTQuery¶ÔÏó
ʹÓñ¾µØºÍÔ¶³Ì·þÎñÆ÷µÄSQLÀ´Ñ¡Ôñ£¬¸üУ¬É¾³ýºÍ²åÈë¼Ç¼
ʹÓÃSQLÓï¾äÀ´´´½¨Á¬½Ó£¬ÁªÏµÓαêºÍ³ÌÐò£¬ËÑË÷µ¥¸ö¼Ç¼
Õâ¸öËõд´ú±íµÄSQL½á¹¹»¯²éѯÓïÑÔ£¬Í¨³£ÊÇÃ÷ÏÔµÄÐø¼¯»ò˵ÿ·âÐÅ£¨¹ðÁÖ£¬ãÚÈø¶ûÍ߶ࣩ¡£ÎÞÂÛÔõÑùÑ¡ÔñÅд¦ËÀÐÌ£¬ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄSQLÊý¾Ý¿âÓïÑÔ£¬ºÜÈÝÒ×´ÓÄÚ²¿BCB·ÃÎÊ£¬¶øÊÇ´ÓBCBµÄĸÓﲻͬ¡£ BCB¿ÉÒÔʹÓÃSQLÓï¾ä´ÓÊý¾Ý¿âÖмìË÷±í£¬Ö´ÐбíÖ®¼äµÄÁª½Ó£¬½¨Á¢Ò»¸ö¶ÔÐí¶à¹Øϵ»òÒªÇ󼸺õËùÓй¦ÄÜ£¬ÄúµÄ·þÎñÆ÷¿ÉÒÔÌṩ¡£
ÓëÁ½¸öSQLÒýÇ棬BCB´¬Ö»½øÈëÓëã£ÂÛºÍdBASEʹÓÃä廯Ð˽¨£¬ºÍÆäËû½¨³ÉInterBase¡£´ËÍ⣬Äú»¹¿ÉÒÔ·ÃÎÊ£¬ÈçMS SQL ServerÖУ¬Èü±´Ë¹£¬¼×¹ÇÎÄ£¬DB2ºÍInformixµÄÆäËûSQLÊý¾Ý¿â¡£×÷ΪһÏî¹æÔò£¬IBµÄSQLÒýÇæ¸üÇ¿´ó±ÈΪParadox»òdBASE±íÐ˽¨µÄÖ®Ò»£¬µ«ËüÃǶ¼Ìṩ¹ã·ºµÄ·þÎñ¡£¹Ø¼üµÄÒ»µã£¬È»¶ø£¬Äú¿ÉÒÔÖ´ÐÐSQL²éѯ£¬¼´Ê¹ÄãÊÇÔÚÒ»¸ö¶ÀÁ¢¹¤×÷£¬¶ÀÁ¢µÄ»úÆ÷£¬²»¾ßÓзÃÎÊ·þÎñÆ÷¡£
BCBÌṩ֧³Öͨ¹ýSQLÖУ¬ÕâÒâζ×ÅÄã¿ÉÒÔ׫дSQLÓï¾ä£¬È»ºóÈÃËûÃÇÖ±½ÓË͵½£¨ÓëÒ»¸ö»òÁ½¸öÀýÍ⣩µ½Oracle£¬Sybase¹«Ë¾InterBase£¬»òÆäËû·þÎñÆ÷¡£Í¨¹ýSQLµÄÊÇÒ»¸öÇ¿´óµÄ¹¦ÄÜ£¬Ô­ÒòÓжþ£º
1¡£´ó¶àÊý·þÎñÆ÷µÄSQLÓï¾ä¿ÉÒÔ´¦Àí·Ç³£Ñ¸ËÙ£¬ÕâÒâζ×ÅÄú¿ÉÒÔʹÓÃÔ¶³ÌÊý¾ÝµÄSQLÒÔ»ñµÃÁ˼«¿ìµÄÏìÓ¦ÄúµÄÇëÇó¡£
2¡£Äú¿ÉÒÔ׫дSQLÓï¾äµÄÒªÇóÀ´Ö´ÐзþÎñÆ÷ͨ¹ýBCBµÄĸÓïÓÃרÃÅÈÎÎñ¡£
ÔÚ×îºóÒ»Õ£¬Äãѧµ½ÁËÈçºÎBCBÄÚ²¿¹¤×÷£¬ÒÔ¼°ÈçºÎÀûÓÃÆä±¾ÍÁµÄÄÜÁ¦ºÜ¶à¡£ÏÖÔÚÊÇʱºò¿´¿´BCBÓëÊý¾Ý¿â½»»¥µÄ¹¤¾ß£¬Ä¿Ç°´æÔÚÓÚÄúµÄ¼ÆËã»ú»òÍøÂçÉϵÄÈκΡ£
Èç¹ûÄúÒÔÇ°´ÓδʹÓÃTQuery¶ÔÏó֮ǰ£¬ÄãÓ¦¸Ã¼ìÌÖÏÖÐеĿØÖÆÌõ£¬µÚ8ÕÂÖУ¬“Êý¾Ý¿â»ù´¡ÖªÊ¶ºÍÊý¾Ý¿â¹¤¾ß”£¬Ëü¸ø³öÁËËùÓлù±¾ÔÚBCBÖеÄÊý¾Ý¿â¹¤¾ßµÄ¸ÅÊö¡£±¾ÕµÄÖصãÊÇÄÇЩ¹¤¾ßÖ®Ò»- TQuery -²¢ËµÃ÷ËüÔÚÒ»¶¨µÄÉî¶È¡£
±¾Õ²»ÄâÒ»¸öSQLµ×Æᣬ¶øÊÇÐðÊöµÄTQuery¶ÔÏóºÍ»ù±¾ÈÎÎñ£¬Äú¿ÉÒÔÖ´ÐÐËü¡£¼´Ê¹Äã²»ÖªµÀÈκÎÓйØSQL£¬±¾ÕÂÈÔÈ»»á°ïÖúÄ㣬Äã×îÖÕѧϰ¹ØÓÚÈçºÎ׫дһ¸öSQLÓï¾äµÄ»ù±¾ÊÂʵµÄ˵·¨¡£µ«ÊÇ£¬¶ÔÓÚÓïÑÔµÄÏêϸ·ÖÎö£¬ÄãÓ¦¸Ã°ÑÒ»¸öÐí¶àÊé¼®ºÍÓйØÕâÒ»ÒéÌâµÄ¹«¿ªÎļþ¡£¾ÙÀýÀ´Ëµ£¬ÎÒÆ«ÏòÓÚʵÓõÄSQLÊֲᣬ±«ÂüµÈ£¬°¬µÏÉúΤ˹Àû¡£ÄúÒ²¿ÉÒԲο¼ÔÚΪWISQL UtilityµÄÁª»ú°ïÖú²Î¿¼×ÊÁÏ¡£¸ü¶àÐÅÏ¢£¬¿ÉÔÚ1 LOCALSQL.HLPÎļþµÄÐÎʽ£¬ÓÃBCB´¬Ö»¡£ £¨¿ª·ÅµÄ°ïÖúÏ£¬°´ALT + F +°Ä£¬È»ºóÑ¡


Ïà¹ØÎĵµ£º

SQLSERVER SQLÐÔÄÜÓÅ»¯

1.Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)¡¡¡¡
¡¡¡¡ SQLSERVERµÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬Òò´Ëfrom×Ó¾äÖÐдÔÚ×îºóµÄ±í£¨»ù´¡±ídriving table£©½«±»×îÏÈ´¦Àí£¬ÔÚfrom×Ó¾äÖаüº¬¶à¸ö±íµÄÇé¿öÏ£¬±ØÐëÑ¡Ôñ¼Ç¼ÌõÊý×îÉٵıí×÷Ϊ»ù´¡±í£¬µ±SQLSERVER´¦Àí¶à¸ö±íʱ£¬»áÔËÓÃÅÅÐò¼°ºÏ²¢µÄ·½Ê½Á ......

SQL·ÖÒ³²éѯ

thunder:
1.MYSQLʵÏÖ
mysql> select * from user;
+----+----------+----------+-----------------+
| ID | username | password | email           |
+----+----------+----------+-----------------+
|  1 | admin    | admin &nb ......

SQL Êý¾Ý¿âÖ®Ò»

1.      SELECT
ʵÀý105
SELECT ID "±àºÅ",Name ÐÕÃû,
       Math_Score 'Êýѧ³É¼¨',  //ÔõôÓеÄÓÐAS,ÓеÄûÓÐ
       Music_Score AS ÒôÀֳɼ¨,
       English_Score AS Ó¢Îijɼ¨
f ......

SQLÊý¾Ý¿âÖ®¶þ

l  INNER JOIN
ÄÚÁ¬½ÓÊÇ×î³£¼ûµÄÒ»ÖÖÁ¬½Ó£¬ËüÒ³±»³ÆΪÆÕͨÁ¬½Ó£¬¶øE.FCodd×îÔç³Æ֮Ϊ×ÔÈ»Á¬½Ó¡£
ÏÂÃæÊÇANSI SQL£­92±ê×¼
select *  from    t_institution i
inner join t_teller t
on i.inst_no = t.inst_no  //˵Á½¸ö±íÖ®¼äµÄ¹ØϵÓÃON
where i.inst_no = "5801"
ÆäÖÐinner¿ÉÒÔÊ¡Â ......

·ÀÖ¹SQL×¢ÈëÍêÕûASP´úÂë

<%
Dim Fy_Url,Fy_a,Fy_x,Fy_Cs(),Fy_Cl,Fy_Ts,Fy_Zx
'---¶¨Ò岿·Ý   Í·------
Fy_Cl = 1   '´¦Àí·½Ê½£º1=ÌáʾÐÅÏ¢,2=תÏòÒ³Ãæ,3=ÏÈÌáʾÔÙתÏò
Fy_Zx = "Error.Asp" '³ö´íʱתÏòµÄÒ³Ãæ
'---¶¨Ò岿·Ý   β------
On Error Resume Next
Fy_Url=Request.ServerVariables("QUER ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ