resultSet = statement.executeQuery("SELECT password,username FROM tbl_Credantials"); while (resultSet.next()) { String userName = resultSet.getString("username "); }
OleDbCommand cmd = new OleDbCommand("SELECT * FROM tbl_Credantials", con); DataTable dTable = new DataTable(); OleDbDataAdapter adapter = new OleDbDataAdapter(cmd); adapter.SelectCommand = cmd; adapter.Fill(dTable); return dTable;
DataTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)