0

I'm not entirely sure how to properly write a select query that will select a value from a table where two particular values are found in the same row.

SELECT value FROM table WHERE id=1 AND field=2

What's the correct syntax?

nickyb
  • 315
  • 1
  • 3
  • 18

1 Answers1

-1

select * from table_name where id=1 and name='any' add quotes for string value only

  • 2
    not the downvoter, but `from column_name`? not a good example for a table name as it could confuse new coders. probably better to use `table_name` for clarity. – Sean Jul 01 '15 at 22:24