On Thu, 27 Jun 2019, at 9:10 PM, Paul H. Tarver wrote:
> I use TEXT/ENDTEXT to create dynamic SQL Queries by merging static text and
> dynamic variables, then pass the resulting string to SQLEXECUTE. Very
> convenient when creating large query strings.
var table = "mytable";
var myfield = "field1";
var myvalue=100;
var cmd = $"select {myfield} from {mytable} where value={myvalue}";
Of course when you do this properly using SQL parameters then it will look
different :)
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.