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

oracleÖÐresultset´íÎó

ÔÚoracleÖÐÓÃjdbcÀ´Á¬½ÓÊý¾Ý¿â£¬ÎªÊ²Ã´ResultsetÀïÃæǶÌ×ResultSet,µ½Ñ­»·µÄµÚ¶þ´Î¾Í±¨¿ÕÖ¸Õ룬ÄÄλ֪µÀÊÇÔõô»ØÊÂÂð£¿
´úÂ룺Java code:
while(prors.next()){
System.out.println(prors.getRow());
Date startime = prors.getTime("starttime");
String st = sf.format(startime);
String ft = sf.format(prors.getTime("finishtime"));
int rt = (int) (sf.parse(ft).getTime()-sf.parse(st).getTime())/1000;
int ssid = prors.getInt("seresscriptid"); //ÕÒµ½ÏµÁеÄid
String ssql = "select * from seriescript where id ="+ssid;
ResultSet srs = stmt.executeQuery(ssql);
srs.absolute(1);
System.out.println(srs.getString("name"));//»ñÈ¡½Å±¾ÏµÁеÄÃû×Ö
srs.beforeFirst();
}



±¨´íÈçÏ£º
Java code:
Exception in thread "main" java.lang.NullPointerException
at oracle.jdbc.driver.ScrollableResultSet.cacheRowAt(ScrollableResultSet.java:1588)
at oracle.jdbc.driver.ScrollableResultSet.isValidRow(ScrollableResultSet.java:1571)
at oracle.jdbc.driver.ScrollableResultSet.next(ScrollableResultSet.java:301)
at test.main(test.java:49)



Ïà¹ØÎÊ´ð£º

oracle sql developer ²éѯÏÔʾÖÐÎÄÂÒÂë

»·¾³£º1.win2003server+oracle9i
2.oracle9i×Ö·û¼¯ÎªAMERICAN_AMERICA.WE8ISO8859P1
3.oracle sql developer°æ±¾ 1.5.5
ÏÖÏóÃèÊö: 1.ÔÚsql developer ÖвéѯoracleÖеÄij¸ö±í£¬ÖÐÎÄÈ«²¿ÏÔʾΪÂÒÂë¡£ ......

ORACLEÊý¾Ý¿âÖÐµÄ group by Óï¾ä£¿

  with adod_dict do
    begin
    close;
    commandtext:='select bgqxcode,count(*) wjsl from wscl_wsda_file where wjnd=:tnd group by bgqxcode'; ......

ÇóʹÓÃt-sqlÓï¾ä½«paradoxÊý¾Ýµ¼ÈëoracleµÄ°ì·¨

ʹÓÃt-sqlÓï¾ä½«sqlserver2kÊý¾Ýµ¼ÈëparadoxµÄ¹¦ÄÜÎÒÒÑʵÏÖ£¬ÓõÄÊÇinsert into ... from table in [ODBC][ODBC;Driver=SQL Server...]µÄ°ì·¨£¬µ±ÎÒ×¼±¸Èç·¨ÅÚÖÆÍê³Éparadoxµ¼Èëoracleʱȴ²»ÐУ¬²»±¨´íµ«ÊÇÖ´ÐкóÃ»Ó ......

¹ØÓÚORACLEÈÏÖ¤¿¼ÊÔ

¹ØÓÚORACLEÈÏÖ¤¿¼ÊÔ¶¼°üÀ¨ÄÄЩ°¡£¿
СµÜ¶ÔÓÚÕâ¸öÈÏÖ¤²»ÔõôÁ˽⣬Ã÷°×È˸ø½²½²¡£
ÎÒ¾ÍÌý˵¹ýÓÐOCPÈÏ֤ʲôµÄ...
Õâ¸ö²»´í£¬Äã¿ÉÒÔÁ˽âÏÂ
http://www.oracle.com.cn/viewthread.php?tid=4834&extra=pag ......

Oracle 9i Ò»¶Ô¶àµÄ¹Øϵ²éѯ

Ò»¶Ô¶à¹Øϵ²éѯ

±í:
ea,eb,ga,gb
±í¹ØϵÈçÏÂ
ea1=eb1
ga1=gb1
eb1=gb31 and eb3 = gb33


ÊÂÀýÊý¾Ý¼°¹ØϵÈçÏÂ:
SQL code:

SELECT ea1, eb3, gb1, gb3, gb31, gb33
from (S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ