-1

How do I query in MySql without putting all inserts in quotations? (I have a big list and it would take to much time to quote and unquote every word)

Example:

SELECT *
FROM names 
WHERE names.first IN ("joe", "tom", "vincent") 
nemja
  • 459
  • 4
  • 19

1 Answers1

1

Since you said the list is comma separated, simply use the 'find and replace' feature to find all commas and replace them with ","

The result should be joe","tom","vincent"," which you can simply copy into mysql. All you then have to do is edit the start and end of the string

daje
  • 40
  • 5