泛微代码访问第三方数据库
1、OA数据源添加数据库
2、代码示例
RecordSet rs = new RecordSet() ; rs.executeSqlWithDataSource(" select mrcode from mes_drawingmanag where mrcode = '10105600001' " , "Mes" ); String mrcode = ""; if (rs.next()){ mrcode = rs.getString("mrcode"); }
1、OA数据源添加数据库
2、代码示例
RecordSet rs = new RecordSet() ; rs.executeSqlWithDataSource(" select mrcode from mes_drawingmanag where mrcode = '10105600001' " , "Mes" ); String mrcode = ""; if (rs.next()){ mrcode = rs.getString("mrcode"); }