`
dky_rl
  • 浏览: 66858 次
  • 性别: Icon_minigender_1
  • 来自: 黑龙江
社区版块
存档分类
最新评论

Column Index out of range

阅读更多

java.sql.SQLException: Column Index out of range, 0 > 11.

索引列超出范围

例如:

  SELECT   CardID,name     你只是查询这2个字段的值  
  但是你却用了rs.getString(3)     最多也就rs.getString(2)

分享到:
评论
3 楼 funnyone 2012-10-21  
[/b][b][/b][b]
2 楼 funnyone 2012-10-21  
引用
引用
引用
引用
引用
引用
1 楼 谭亮辉 2011-06-23  
查出来一条,我却用了rs.getString(0)

相关推荐

    微软内部资料-SQL性能优化5

    However, if we are searching for multiple rows, such as duplicate values, or keys in a range, anything more than a small number of rows will make the nonclustered index search very inefficient. ...

    ans-matchers:rspec 匹配器扩展

    have_out_of_range_validation have_association_db_index have_executable_sql have_out_of_range_validation “对导致 sql 级别超出范围的值进行验证错误” describe Model do it { expect ( Model ) . to ...

    微软内部资料-SQL性能优化3

    However, the req_mode column of master.dbo.syslockinfo has lock mode code that is one less than the code values shown here. For example, value of req_mode = 3 represents the Shared lock mode rather ...

    Dundas.Chart.for.Winform.Enterprise.v7.1.0.1812.for.VS2008

    Chart .NET: Stacked Column + 3D throws an Index was out of range exception when series have a different number of data points The accumulation distribution formula is incorrect; if open and close are ...

    UE(官方下载)

    Need to restrict your search/replace to a specific column range? The column based search does just that... Compare Highlighted Text If you need to quickly compare of portions of text, rather than an ...

    OutlookAttachView v2.73

    o Added 'Domain' column, which displays the domain of the from/to email address. * Version 2.25 o Added 'Message Direction' column (Incoming or Outgoing). * Version 2.20 o Added 'From Email' and...

    TMS Pack for FireMonkey2.3.0.1

    Fixed : Issue with index out of bounds in empty grid connected to dataset v2.1.0.1 Improved : NextPage and PreviousPage methods in TTMSFMXGrid Fixed : Issue compiling demo's in trial version ...

    Python Cookbook英文版

    2.10 Finding the Deep Index of an Item in an Embedded Sequence 2.11 Showing Off Quicksort in Three Lines 2.12 Sorting Objects Using SQL's ORDER BY Syntax 3. Text 3.1 Processing a String One ...

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    - fixed bug with truncate of font size combo-box in Windows Vista/7 in designer (lost of vertical scroll bar) - fixed bug when lost file name in inherited report - fixed bug in multi-page report with ...

    EurekaLog_7.5.0.0_Enterprise

    9)....Added: EMemLeaks._ReserveOutOfMemory to control reserve size of out of memory errors (default is 50 Mb) 10)..Added: "MinLeaksLimitObjs" option (EMemLeaks unit) 11)..Added: Fatal memory problem ...

    DevExpress VCL 12.2.6(v2012vol2.6) 源码-例子-帮助-part1

    Q487520 - OLAP mode - The "List index out of bounds" exception when expanding a grouping value of an inner column/row field after an outer field has been hidden in the same area Q485882 - ...

    DevExpress VCL 12.2.6(v2012vol2.6) 源码-例子-帮助-part2

    Q487520 - OLAP mode - The "List index out of bounds" exception when expanding a grouping value of an inner column/row field after an outer field has been hidden in the same area Q485882 - ...

    ZendFramework中文文档

    Fetching a Single Column from a Result Set 10.2.3.5. Fetching a Row as an Object 10.3. Zend_Db_Profiler 10.3.1. Introduction 10.3.2. Using the Profiler 10.3.3. Advanced Profiler Usage 10.3.3.1....

    C#读取JPEG图片的Exif信息

    // of the data once it is returned. Those properties have their own // methods. switch (exifCode) { case Definitions.exifCode.ImageDescription: returnValue = ParsedString(Definitions.exifCode....

    Software Testing and Continuous Quality Improvement

    27 vii <br> Software Testing and Continuous Quality Improvement 2 Overview of Testing Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Black-Box Testing (Functional)....

Global site tag (gtag.js) - Google Analytics