select ... from .. where lower(username) = lower(?) #### SELECT ... FROM ... where foo like ? ESCAPE '\'