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 answers
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
- Spark SQL fails with "SQLCODE: <-25>:<Input encountered after end of query>" on intersystems cache DB JDBC read
- REceiving SQL erro 37000 after attempting to run Script creating Trigger
- How can I convert Intersystems Cache Global Objects to SQL or a more readable format?
- SQL Excluding data based on certain criteria for a date range
- Setting Up the Entity Framework Provider for Intersystems Cache 2018
- Intersystems Cache not generating data with Populate
- Pyodbc on intersystems Caché int overflow
- Nesting a CAST() Function
- Get 3 most recent months (T, T-1, and T-2) in InterSys Cache DB
- SQL Query returns a negative number but does not interpret it as a negative number but a positive number
- odbc_result(): Field index is larger than the number of fields?
- Connecting Caché database in Azure function
- Why are my Greek characters being inserted in the database as question marks(?) when using parameterized queries?
- How to concatenate and format date and time to timestamp/datetime in Intersystems Caché database
- How to export class to xml without namespace?
Related Questions in INTERSYSTEMS
- Spark SQL fails with "SQLCODE: <-25>:<Input encountered after end of query>" on intersystems cache DB JDBC read
- How can I convert Intersystems Cache Global Objects to SQL or a more readable format?
- Converting Intersystems cache objectscript into a python function
- How do I check a question has been answered in TrakCare?
- Syntax to access Intersystems cache 2017.xx class properties with Python
- InterSystems ODBC error crashes Powershell
- Connecting Caché database in Azure function
- Working with different timezones with Intersystems
- Set network interface on client host to be used for Cache connections
- How can we stop journalling on InterSystems IRIS instance?
- Can SQL queries across namespaces be made?
- 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
- Intersystems IRIS Data Platform cant change default password
- Querying data from multiple odbc connections simultaneously?
- Does Flyway support InterSystems Cache Database migration?
Related Questions in MUMPS
- Integration of drake to OpenSUSE - error in external/mumps_internal/BUILD.bazel
- Is this a mumps variable in action?
- What does a ^ with no leading function name mean in mumps
- What does the SERIAL keyword do?
- problem linking MUMPS to my own c++ code. relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a PIE object;
- How to use the control parameters to distribute the input matrix across processors in MUMPS 5.5.1?
- 64 bit integer Makefile of MUMPS
- Count the number of occurrences of each character in a string
- How to replace string in MUMPS where new string consist of old string?
- Validation Pattern MUMPS where string has space
- Environment variable $ydb_dist (/opt/yottadb/current) could not be verified against the executables path (/opt/yottadb/current/yottadb)
- MUMPS - Export to xml
- Traps as exceptions
- Open and Read a File
- Cannot access global directory
Related Questions in OBJECTSCRIPT
- How do I check a question has been answered in TrakCare?
- How to correctly execute a query that contains a procedure and has no return in Objectscript/Intersystems IRIS
- 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
- Dynamic iFind Index without creating class Index of %iFind.Index.Basic
- How can I add two or more file attachments using %Net.MailMessage in intersystems-cache?
- Cache Variable Scope in Cache Server Page (CSP)
- Unexpected SQL error returns <UNDEFINED> in Intersystems Cache
- Unable to set variable value from Intersystem Cache Server Method
- Access instance variables in Cache Objectscript
- Intersystems Objectscript, Persisted Class with Non Persisted Property
- Unable to set content type of http header in REST
- ObjectScript Library.FileBinaryStream convert into a string
- Does object script supports multiple inheritance?
- Execute stored functions at run-time
- Build a RESTful POST API in ObjectScript
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?
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)
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.