static void testOdbc() { string sql; int rtn = 0; sql = "select * from bill where bill_id = ?"; DataSet ds = OdbcTool.ExecuteDataSet(sql, "PT00000001"); foreach (DataRow item in ds.Tables[0].Rows) { for (int i = 0; i < ds.Tables[0].Columns.Count; i++) { Console.Write(item[i].ToString().PadLeft(10, ' ')); } Console.WriteLine(Environment.NewLine); } }