Home > Ask the Oracle Experts > (Archive) App Dev: PL/SQL and XML Questions & Answers > SQL ANSI standards and compliance
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

SQL ANSI standards and compliance

Lewis Cunningham EXPERT RESPONSE FROM: Lewis Cunningham

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Oracle tips, scripts, and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 16 November 2005
I have some programs developed in VB6. The SQL command set is compatible with MS SQL Server 2000 and MS Access. Now I need to provide support for Oracle also. The problem I am facing is with functions like LEFT, RIGHT, STR, MONTH, YEAR, etc. When these queries are fired on Oracle it says "invalid identifier." Where can I get a list of compatible functions in Oracle? I would feel obliged if you could help in this regard.

>
EXPERT RESPONSE
It sounds like you've run into a standards issue. SQL has been guided by the ANSI SQL standard. Most vendors still maintain some level of compliance with one of the several versions of the SQL standard.

For a nice overview of SQL and ANSI, see Intro To SQL.

As the link above says, vendors want to differentiate themselves so they add features unique to themselves. In this case, it is the addition of SQL-callable functions.

I don't know of a source that says for function "x" in SQL Server call function "y" in Oracle. The best site I've seen that does that is now very old (Oracle v7.3) but it might be a good place to start. Also, all of Oracle's documentation is free on an Oracle web site. You may have to sign up for a free membership.

You can view the documentation for the Oracle-provided SQL functions or take a look at Oracle SQL standards compliance.

If you have a specific question about using one of the functions or about using PL/SQL, be sure to send it this way!


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
(Archive) App Dev: PL/SQL and XML
Detect if a column is NUMBER or VARCHAR2 in PL/SQL
Loading data into Oracle
Log execution time for a procedure
Hiding objects in a schema
Query for five most recent dates
Connecting with Visual Basic
Developing a parser for recognizing HTML tags
Oracle and SOAP
Concatenating XML fragments
Two schemas on a single database

Oracle PL/SQL
Oracle's free SQL Developer adds database migration tool
Confused about Oracle certification exams
ORA-01422 error when procedure returns more than one row
Calling procedure inside another procedure in anonymous block
How to import comma-delimited text file to Oracle table
Oracle updates Microsoft developer tools
PLS-00103 errors
PL/SQL do's and don't's: Five questions with Steven Feuerstein
Definition of force view
ORA-04082: NEW or OLD references not allowed in table level triggers

Oracle SQL
SQL to count values of a status code
Counting NULL columns
Detail rows for accounts that occur three times
Counting a row's NULL columns
Oracle's free SQL Developer adds database migration tool
Latest transaction if no recent prior transactions
Three ways SQL can count rows by type
SQL to select only certain times within a date range
Oracle SQL to test for numerics
Number of rows in multiple tables
Oracle SQL Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
PL/SQL  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsWebcastsWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts