After hours of coding, I realized I got myself into a major bind. I'm writing a function to delete a users from a database.
My problem is, the database has 2 fields, firstname and lastname. My parameter in my function is one string that consist of their full name, not broken down into first and last.
Here's what I'm seeking...
DELETE FROM users WHERE name = 'Joe Dirt'
That would work fine, but my database has name broken into first,last.
I need to do something like this
DELETE FROM users where firstname + ' ' + lastname = 'Joe Dirt'
(firstname nad lastname are columns in my db)
Obvisously that doesn't work, but is there a way you can combine two varchars with a space between them in mysql commandline??