database - SQL SELECT WHERE Columns Data begins and ends with [ ] i.e. [Unchecked] -


this question has answer here:

as title says im trying select statement in database find data begins , ends square brackets i.e. [unchecked]

ive tried folowing select query doesn't seem correct...

  select * [db_table] [db_column] '[%' 

this doesnt seem of data starts [. although if change [ letter such gets data beginning a.

is possible '[%' (beginning with) , '%]' (and ending with)?

this link how can escape square brackets in clause? not duplicate of mine different.

change query

select * [db_table] [db_column] '[[]%' 

you need wrap '[' in square brackets escape , treat text used searching. note sql server.

also, if wanted search values starting '[' , ending ']', this:

select * [db_table] [db_column] '[[]%]' 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -