java - How to compare SQLite Column against a user string? -


I am creating a JavaFlapAppletate (with Java) in SQLite, but I'm trying to understand I want a username against the username already taken:

For example: I want to name the user name, but it is taken, against anyone I have already created How to compare the wanted user name.

I have a SQLite users.db and the field is USERNAME.

Thank you for any help.

Try to find the UNIQUE barrier.

Use the table user (id INTEGER, USERNAME text unique) when you create a table;

So if johuggs is already an entry in DB, trying to add it to the user values ​​(2, 'joeblogs') Used to be; You Error: The column USERNAME is not unique .


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -