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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -