I am writing a OLEDB query that needs the SQL command to be in a string without containing end of lines or tabs, only spaces.
The following works, but I cannot find how to do this without having to create the 'empty' strings.
User may modify the SQL query, using JMP installed in Windows machines.
SQL_query = "SELECT a, b, c
FROM mytable
WHERE a = 'alice'
AND b BETWEEN '86' AND '91'";
// Cleansing strings (inputs need to be in one line)
newline = "
";
tab = " ";
space = " ";
SQL_query = substitute(SQL_query, tab, space);
SQL_query = substitute(SQL_query, newline, space);