Searching the text in a column using PostgreSQL -


i having table column names no_of_pole , pol_st_typ datatypes integer , character respectively. want check if no_of_pole 2 pol_st_type starts keyword 'double' , if no_of_pole 3 pol_st_type starts keyword 'tripole'. how accomplish using postgresql?

select "no_of_pole","pol_st_typ"  network."pole_structure"  (no_of_pole = '2' , pol_st_typ 'double%')         or (no_of_pole = '3' , pol_st_typ 'tri pole%') 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -