Hello,
Does it make sense if i design a table with 2 columns with out defining any key?
username varchar(64) notnull and password varchar(64) notnull
This table does'nt have relation with any other table, shld we really have an id field???
lets say if i compare the username and password entered by the user against the values stored in the table by using the following prepared statements, will it have any disadvantages??
pstmt = connection.prepareStatement("select * from TBL_NAME where username='"+Uname.getText()+"' and password = '"+new MD5().getHash(Passwd.getText())+"';");
rset = pstmt.executeQuery();
As of now everything works fine, but i'd like to know if its a good design.
Thanks for your time