Search code examples
mysqlsqlclause

Quick SQL error


I am having some issues with a query and i cant seem to be able to figure it out. Any ideas?

Works

SELECT * FROM `InviteKeys` WHERE `Value` = `1234567890123456`

Doesn't work

SELECT * FROM `InviteKeys` WHERE `Value`  =  `VPx46RG2an1IqaBD`

Solution

  • Use Single Quotes. It will work

    SELECT * FROM InviteKeys WHERE Value  =  'VPx46RG2an1IqaBD'