There’s not standard way to check if a MySQL user exists and based on that drop it. Are there any workarounds for this?
Edit: I need a straight way to run this wi
If you mean you want to delete a drop from a table if it exists, you can use the DELETE command, for example:
DELETE
DELETE FROM users WHERE user_login = 'foobar'
If no rows match, it's not an error.