Print Thread
Scan variables
#42412 10/06/11 01:36 PM
Joined: Feb 2005
Posts: 49
A
Member
OP Offline
Member
A
Joined: Feb 2005
Posts: 49
Hello, there is some method that allow to scan an sql statement returning a variable's list?

Thanks
Alberto

Re: Scan variables
Alberto Pilat #42416 10/07/11 09:33 AM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
We have a scan function available, but it will not determine the data types of the variables. In the Oracle unit there is a published function like this:

function FindVariables(const SQL: string; IncludeDuplicates: Boolean): TStringList;

This function will scan de SQL parameter for variables and will return them in a TStringList. The IncludeDuplicates parameter determines if duplicate variables will be ignored or not.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.030s Queries: 14 (0.010s) Memory: 2.4988 MB (Peak: 3.0428 MB) Data Comp: Off Server Time: 2024-05-18 21:48:53 UTC
Valid HTML 5 and Valid CSS