MySQL cannot delete the where in column contains-

there is a field of type String name in the database.

I want to try to delete two columns:

DELETE
FROM
img
WHERE NAME
IN(
    FuvKctrx3Cvg4t-HrA6gylGscgoi,
    FisVPEZDbBnrMsEC5yYGFPmesBp1
)

but sql returns -sharp1054-Unknown column "FuvKctrx3Cvg4t" in" where clause"

because the name column contains -, how can we delete the entire column?

Jul.09,2021

The

string should be enclosed in quotation marks, otherwise it is considered to be a column name

DELETE
FROM
img
WHERE NAME
IN(
    'FuvKctrx3Cvg4t-HrA6gylGscgoi',
    'FisVPEZDbBnrMsEC5yYGFPmesBp1'
)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46d45-4c2ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46d45-4c2ef.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?