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

£¨×îгɹ¦£©Ãâ°²×°OracleÔËÐÐpl/sql developer

1.µ½http://www.oracle.com/technology/global/cn/software/tech/oci/instantclient/htdocs/winsoft.htmlÏÂÔØ
11.1.0.7.0 °æµÄ¼´Ê±¿Í»§¶Ë³ÌÐò°ü — Basic£¨²»ÊÇBasic Lite£©
2.½«ÏÂÔØµ½µÄÎļþ½âѹ£¬½âѹºóÎÒ½«Ä¿Â¼instantclient_11_1ÀïµÄÈ«²¿Îļþ¿½±´µ½ÁËÒ»¸öеÄĿ¼£ºE:\programs\OracleClient¡£ÄãÒ²¿ÉÒÔ²»¿½±´£¬Ö±½ÓʹÓýâѹºóµÄĿ¼Ãû¡£
3.´´½¨Îļþtnsnames.ora£¬ÄÚÈÝÈçÏ£º 
APP =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 172.22.22.6)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = app)
    )
  )
×¢£ºÐèÒª¸ü¸ÄµÄÊÇ£º1.°Ñ HOSTµÄÖµ172.22.22.6¸Ä³ÉÄãÒªÁ¬½ÓµÄÊý¾Ý¿âËùÔÚÖ÷»úµÄµØÖ·£»2.°ÑSERVICE_NAMEµÄÖµ¸Ä³ÉÄãҪʹÓõÄÔ¶³ÌÊý¾Ý¿âÃû
4.ÉèÖÃpl/sql DeveloperµÄperference¡£½«OracleµÄConnectionÀïµÄOracleÖ÷Ŀ¼ÉèÖÃΪÔÚµÚ2²½ÀïÉèÖõÄĿ¼£¬ÎÒµÄÊÇ£ºE:\programs\OracleClient£¬Í¬Ê±½«OCI¿âÉèÖÃΪE:\programs\OracleClient\oci.dll
5.ÉèÖû·¾³±äÁ¿¡£ÔÚϵͳ±äÁ¿pathÀï¼ÓÉÏE:\programs\OracleClient£»Ð½¨»·¾³±äÁ¿NLS_LANG£¬ÖµÎªAMERICAN_AMERICA.ZHS16GBK£»Ð½¨»·¾³±äÁ¿TNS_ADMIN£¬ÖµÎªE:\programs\OracleClient
6.ÖØÆôpl/sql developer, ÊäÈëÓû§ÃûÃÜÂ룬ÒÔ¼°µÚ3²½Àïnsnames.oraÉèÖõÄAPP
ÓÐÎÊÌâµÄ»°¿ÉÒÔÁªÏµÎÒ¡£


Ïà¹ØÎĵµ£º

50Ìõ³£ÓÃsqlÓï¾ä

Student(S#,Sname,Sage,Ssex) ѧÉú±í
Course(C#,Cname,T#) ¿Î³Ì±í
SC(S#,C#,score) ³É¼¨±í
Teacher(T#,Tname) ½Ìʦ±í
ÎÊÌ⣺
1¡¢²éѯ“”¿Î³Ì±È“”¿Î³Ì³É¼¨¸ßµÄËùÓÐѧÉúµÄѧºÅ£»
  SELECT a.S# from (SELECT s#,score from SC WHERE C#='001') a,
  (SELECT s#,score  fr ......

access ·ÖÒ³Óà SQL²éѯÓï¾ä

select top ÿҳÏÔʾµÄ¼Ç¼Êý * from topic where id not in (select top £¨µ±Ç°µÄÒ³Êý-1£©×ÿҳÏÔʾµÄ¼Ç¼Êý id from topic order by id desc) order by id desc
select top ÿҳÏÔʾµÄ¼Ç¼Êý * from topic where id not in (select top £¨µ±Ç°µÄÒ³Êý-1£©×ÿҳÏÔʾµÄ¼Ç¼Êý id from topic order by id desc) ......

¹ØÓÚSQL ServerËÀËø

transaction 1:
------------------------------------------------------
 begin transaction
  update table1 set cola = 'str1'
  Waitfor time '10:12:00'
  update table2 set colb = 'str2'
 rollback transaction
 
transaction 2:
---- ......

sqlÊý¾Ý¿â£ºÈçºÎÔÚÒ»¸ö±íÖÐÌî¼Ó»òÕßɾ³ýÒ»¸ö×ֶΣ¡


ÈçÒªÔÚÒ»¸öhwsp±íÖÐÌî¼Ó×ֶΣºylxs
alter table hwsp add column ylxs
ALTER TABLE ±í {ADD ADD{COLUMN ×Ö¶ÎÀàÐÍ [ (×Ö³¤)] [NOT NULL]     [CONSTRAINT Ë÷Òý ] |
     ALTER COLUMN ×Ö¶ÎÀàÐÍ [(×Ö³¤)] |
     CONSTRAINT ¶àÖØ×Ö¶ÎË÷Òý } |
 &nbs ......

¾¡Á¿±ÜÃâÔÚSQLÓï¾äµÄWHERE×Ó¾äÖÐʹÓú¯Êý

----start
    ÔÚSQLÓï¾äµÄ WHERE ×Ó¾äÖÐÓ¦¸Ã¾¡Á¿±ÜÃâÔÚ×Ö¶ÎÉÏʹÓú¯Êý£¬ÒòΪÕâÑù×ö»áʹ¸Ã×Ö¶ÎÉϵÄË÷ÒýʧЧ£¬Ó°ÏìSQLÓï¾äµÄÐÔÄÜ¡£¼´Ê¹¸Ã×Ö¶ÎÉÏûÓÐË÷Òý£¬Ò²Ó¦¸Ã±ÜÃâÔÚ×Ö¶ÎÉÏʹÓú¯Êý¡£¿¼ÂÇÏÂÃæµÄÇé¿ö£º
CREATE TABLE USER
(
NAME VARCHAR(20) NOT NULL,---ÐÕÃû
REGISTERDATE TIMESTAMP---×¢² ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ