I have a table called login with a username and password both encrypted by using ENCRYPTBYPASSPHRASE
However when I insert a new login account I want to check wether the new login username doesn’t exist already.
How can I check wether a username already exists in the database?
I’ve tried stuff like select * from login where username = encryptbypassphrase('username', 'passphrase') but that came out negative.
I would expect something like these to be used: