how to skip the inverted commas when selecting a column from MySQL -


there table fields name, age, city , state. need select rows based on city name. value of column city surrounded ", example "la".

how can write select statement getting data based on city.

just suggestion, if collecting , storing information in table queried later (ie in control of input), try clean data before storing make easier query?

if input has quotes , white space, clean before inserting values table. use programming this, or mysql: trim() , replace() remove characters might make query hard build , store resulting value table.

of course, if not have control of input data, answers above , challenge programmer begins, trying figure out different input possibilities , dealing that.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -