Can $Functions like $Extract, $P be used in SQL statements? If they can, please provide and example. Ex Select $P(Field1,"*") from MyTable. This returns an error saying "A term expected beginning with either..."
MUMPS $Functions in SQL Statements
486 Views Asked by user6284097 At
2
There are 2 best solutions below
0
DAiMor
On
MUMPS itself does not have any support of SQL, but in Caché it is possible to use some of system functions. But in SQL you should use full name for such functions, so $p is not available for use. All list of available functions you can find in the documentation here.
Related Questions in INTERSYSTEMS-CACHE
- How can I reliably convert YYYYMMDDhhmmss<offset> to a date/time?
- Intersystems Caché Java Gateway
- Build a RESTful POST API in ObjectScript
- SQL query if select criteria is null output to be text
- Querying Intersystem Caché through ODBC
- Linux getting rid of Carriage Return when file is being written out by intersystems cache
- Export from Intersystems Caché database
- Linked server to Intersystems Cache database from MS SQL Server 2005 Browse Catalog
- Nested loops for large datasets
- How to check a column exists in a table in Intersystems Cache SQL?
- Return just the results from %SYS.ProcessQuery using $SYSTEM.SQL.Shell() in Intersystems Caché on a Unix server
- How to query Intersystems Caché to obtain database and license properties?
- What is the fastest way (at run time) to have an Intersystems Cache database stored procedure return nothing but a BLOB?
- Spark SQL fails with "SQLCODE: <-25>:<Input encountered after end of query>" on intersystems cache DB JDBC read
- Managing %SYS.PTools.SQLStats data
Related Questions in INTERSYSTEMS
- Intersystems Caché Java Gateway
- Linux getting rid of Carriage Return when file is being written out by intersystems cache
- Sending An HTTP Request using Intersystems Cache
- Linked server to Intersystems Cache database from MS SQL Server 2005 Browse Catalog
- How to check a column exists in a table in Intersystems Cache SQL?
- Can SQL queries across namespaces be made?
- Spark SQL fails with "SQLCODE: <-25>:<Input encountered after end of query>" on intersystems cache DB JDBC read
- Intersystems Cache ODBC & PHP Character Encoding
- How can we stop journalling on InterSystems IRIS instance?
- LogiXML Studio - Logi Report force page break
- facing the error “command 'vscode-objectscript.explorer.refresh' not found” in Visual Studio Code (Version 1.49.0) with IRIS 2020.1.0.215.0
- Syntax to access Intersystems cache 2017.xx class properties with Python
- How do I check a question has been answered in TrakCare?
- Converting Intersystems cache objectscript into a python function
- In Caché ObjectScript, what is the `Aliases' property keyword
Related Questions in MUMPS
- Assigning two items together from an array Objectscript/Mumps
- What does a ^ with no leading function name mean in mumps
- GT.M, any experience with it?
- How to solve " %GDE-I-WRITEERROR, Cannot exit because of write failure. Reason for failure: 13,GDEPUT+48^GDEPUT,%SYSTEM-E-ENO13, Permission denied"
- What's the language-agnostic algorithm for finding the "Same day of week last year"
- In Caché ObjectScript, what is the `Aliases' property keyword
- How can I get the file extension
- Cache Object Script How to MakeDirectory FTP Class
- MUMPS - Export to xml
- Traps as exceptions
- Environment variable $ydb_dist (/opt/yottadb/current) could not be verified against the executables path (/opt/yottadb/current/yottadb)
- 64 bit integer Makefile of MUMPS
- MUMPS Address Validation
- Problems to implement a MUMPS subroutine in YottaDB
- Cannot access global directory
Related Questions in OBJECTSCRIPT
- Intersystems Caché Java Gateway
- Build a RESTful POST API in ObjectScript
- Assigning two items together from an array Objectscript/Mumps
- Return just the results from %SYS.ProcessQuery using $SYSTEM.SQL.Shell() in Intersystems Caché on a Unix server
- How to query Intersystems Caché to obtain database and license properties?
- How to "throw" a %Status to %ETN?
- How to use Intersystem's session within web services
- How to use Java Methods with Caché?
- What is the correct syntax for using "import"?
- Object Script query without using %OpenId
- How to set a variable to NULL in ObjectScript?
- How to delete generated unit test data only?
- facing the error “command 'vscode-objectscript.explorer.refresh' not found” in Visual Studio Code (Version 1.49.0) with IRIS 2020.1.0.215.0
- What is the difference between ByRef and Output method argument modifiers?
- What does this recommendation mean on InterSystem Russia's github coding guidelines (macro)?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If your question is can I use some of the standard $ functions in CacheSQL the answer is yes. The following $ functions are available in CacheSQL
SQL functions:
$EXTRACT$FIND$LENGTH$LISTI suspect your issue is the usage of
"characters.If you did
you should get results.