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
Post a Comment