I am trying to find out if I can write SQL in a certain fashion which I want to put into a Stored Proc.
I want to select a field from the database which is a text field - ie:-
Hello $customer$,
You owe me $sales ammount$ can I have it please
etc etc
The user can define this text and it is loaded into the DB. The power here obviously is that they can enter a field they want between dollar signs without having to know how to write SQL. I want to write SQL coding to go through each charchter in the field and then when it sees a Dollar sign, call upon SQL to gather this information, and then carry on through the rest of the text field etc etc.
Can anyone give me an idea if this is possible, and the SQL I can use.
I want to select a field from the database which is a text field - ie:-
Hello $customer$,
You owe me $sales ammount$ can I have it please
etc etc
The user can define this text and it is loaded into the DB. The power here obviously is that they can enter a field they want between dollar signs without having to know how to write SQL. I want to write SQL coding to go through each charchter in the field and then when it sees a Dollar sign, call upon SQL to gather this information, and then carry on through the rest of the text field etc etc.
Can anyone give me an idea if this is possible, and the SQL I can use.