[Microsoft] [ODBC SQL Server Driver] invalid descriptor index problem solving

xiaoxiao2021-03-06  14

[Microsoft] [ODBC SQL Server Driver] Invalid Descriptor Index Problem Solution When JSP is read, you must read in the order of the column names in the table, otherwise an error will occur.

When you take the data, you should follow the order of the database, such as the database, VARCHAR ID VARCHAR NAME VARCHAR ADDRESS

When you take it, you must take the following order: rs.getstring ("id") Rs.getstring ("name") Rs.getstring ("address") rebound String S1 = rs.getstring ("id"); string S2 = rs.getstring ("name"); String S3 = rs.getstring ("address"); then use S1, S2, S3 in casual order!

转载请注明原文地址:https://www.9cbs.com/read-50490.html

New Post(0)