Forum Replies Created
-
AuthorReplies
-
So Jim the only way to pass a variable would be to use a stored procedure
The last line of the Query has a like.
The setup in the screenshot gets me the desired results. Is there no way to pass a value to the like statement?
Attachments:
You must be logged in to view attached files.March 20, 2025 at 10:57 am in reply to: ‘Failed to query data: The index 1 is out of range.’ #121894Using Advanced Database Lookup
March 20, 2025 at 10:05 am in reply to: ‘Failed to query data: The index 1 is out of range.’ #121892Thanks for your assistance once again Jim.
Tcl code calling look up.
set values [dblookup “sofhirSearchTable.tbl” “SOF”]
echo “values $values”Attached screenshot of the DB table setup.
Attachments:
You must be logged in to view attached files.Can the db lookup handle multiple values returned?
I know a DB table lookup would normally return one value. Could a db table lookup be used to return multiple lines if needed
Hi Jim,
Reading the file for information such as the password and username might work. I see the PW is encrypted in the file. Is there a way to decrypt it, or can it be used as is?
I wanted to use a tcl script to query my external DB and return the results to compare against a lookup table. I know we can do that but wanted not to use the pw in the script.
Would the sqliterc be used by a tcl script?
Can you share the contents of that file?
If on Linux and using “load sqlite3-regex.so” do we still need to enable the load option?
On another note, I was trying to access a smat file, not the error db in this case.
In the documentation, I found the Smat API. Does anyone have an example where the call is in a standalone TCL proc? I keep getting an error that the directory or file does not exist.
And in the example below I used -e ASCII in place of user_defined to open my file. I used this since that is what is in my netconfig. Is this the correct usage?
set smatdbTest [smatdbopen test.smatdb user_defined]
Thanks, guys. I got it working. Jim K. Let us know how the PostgreSQL project goes.
Using SQL. I thought we could use a join in the newer versions.
-
AuthorReplies