I need to find any rows in a table that have 16 numbers in a row.I need to make sure the users have not already inserted rows that contain a cc number. I am going to replace all spaces and dashes with empty string and manually inspect the rows to ensure i only act on appropriate ones. We have several million rows and I need to narrow down the focus.
Share
If you want the ones that are not like a valid credit card number, then:
Of course, remember that American Express cards only have 15 digits. So to incorporate that, you may want instead:
EDIT Based on t-clausen.dk’s interpretation of the problem, where the OP hasn’t already replaced dashes and spaces, you may need: