Hi all,
I have a whole bunch of tables that have columns that are varchar. I want to check for any double space within the string. Also for any space in front of the string or at the end of a string.
I know I could check like this:
WHERE (DESCRIPTION LIKE '% %' OR DESCRIPTION LIKE ' %' OR DESCRIPTION LIKE '% 'OR DESCRIPTION LIKE ' %' OR DESCRIPTION LIKE '% ');
But each table have different column names. So its a lot of work to specify each table and its corresponding columns. How can I check for double space a bit faster without writing script for each table?
Thanks!
I have a whole bunch of tables that have columns that are varchar. I want to check for any double space within the string. Also for any space in front of the string or at the end of a string.
I know I could check like this:
WHERE (DESCRIPTION LIKE '% %' OR DESCRIPTION LIKE ' %' OR DESCRIPTION LIKE '% 'OR DESCRIPTION LIKE ' %' OR DESCRIPTION LIKE '% ');
But each table have different column names. So its a lot of work to specify each table and its corresponding columns. How can I check for double space a bit faster without writing script for each table?
Thanks!