In SQL, the word "left" is used in 2 contexts: it is a string function, as in left(var_name, 2), and it is a statement, as in "select * from table1 left join table2 on .....".
Is there any way to set up syntax highlighting to distinguish these 2 uses? I have "left" defined as a function, and I tried defining "left join" as a statement, but it didn't work. Also it didn't work to define the function as "left(", I guess because the "(" is a delimiter. Any other ideas?
Is there any way to set up syntax highlighting to distinguish these 2 uses? I have "left" defined as a function, and I tried defining "left join" as a statement, but it didn't work. Also it didn't work to define the function as "left(", I guess because the "(" is a delimiter. Any other ideas?