sql - Postgresql how to show strings only with a certain number of occurrences of a character? -


In Postgresql, I only have to select names that contain two events of "E", not least Does anyone think of this?

case sensitive:

'% E% e%'; And do not like '% e% e% e%';

or:

  ... ou length (translate (colonel, 'e', ​​'') = length (call) - 2 < / Code> 

Comments