• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp and mysql

 
killa killah
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does mysql tables have default null values?

When I leave the username and password fields blank,it logs in how do I prevent ths frm happening?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65342
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems much more like a JDBC than a JSP question. I've moved this to the JDBC forum.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

killa killah wrote:Does mysql tables have default null values?

Yes. Unless you set a column to not null or provide a default, it defaults to not null.

killa killah wrote:When I leave the username and password fields blank,it logs in how do I prevent ths frm happening?

Is your database set up to allow anonymous logins?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic