• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What are these SQL words?

 
Ranch Foreman
Posts: 914
8
  • Number of slices to send:
    Optional 'thank-you' note:
I know standard SQL such as ORACLE.

I often see keywords like these that developers have in their code.  It seems like something on top of SQL.  I don't know what they are.  I'd be happy to know what they are and then I can read about the topic.  If someone had time,  I'd like to know what they are:

AFTER
FOR
WHEN
BEGIN
REFERENCING
CAST

I wish there was a Forum choice of Database SQL newbie.   My question is not advanced enough to fit into any existing drop down category.

Thaniks,

Kevin
 
Bartender
Posts: 1156
20
  • 2
  • Number of slices to send:
    Optional 'thank-you' note:
Most of the database vendors extend standard SQL(*) with extra functionality.  
Oracle has PL/SQL which is a cursor-based language - in simplistic terms this allows you to create "loops".

They always have good documentation (and lots of it!) -PL/SQL Language Elements

(*) if there is a standard!  
 
kevin Abel
Ranch Foreman
Posts: 914
8
  • Number of slices to send:
    Optional 'thank-you' note:
Peter,

I remembered it being part of SQL but I wasn't sure if I needed to use an add on of some kind.  Now I know it is part of Oracle or probably also built into other SQLs.

I can now look in the Oracle documentation to learn what each one does.

Thanks,

Kevin
 
kevin Abel
Ranch Foreman
Posts: 914
8
  • Number of slices to send:
    Optional 'thank-you' note:
Peter,

I went to the link and I see a lot of information about PL1 but not the simple looking words I mentioned.  I'm wondering if they are something else.  It looks like PL / ORACLE but I don't know why the keywords are not in the documentation.

Kevin
 
Peter Rooke
Bartender
Posts: 1156
20
  • Number of slices to send:
    Optional 'thank-you' note:
Some of these words are part of longer PL/SQL commands,After Update and For loop
 
kevin Abel
Ranch Foreman
Posts: 914
8
  • Number of slices to send:
    Optional 'thank-you' note:
@Peter...Appreciated
 
Saloon Keeper
Posts: 27868
196
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:

kevin Abel wrote:Peter,

I went to the link and I see a lot of information about PL1 but not the simple looking words I mentioned.  I'm wondering if they are something else.  It looks like PL / ORACLE but I don't know why the keywords are not in the documentation.

Kevin


PL1, also known as PL/1, PL/I, Programming Language/1*, was a language developed by IBM in the later 1960s (I think). It was an attempt to create a "universal" language for their mainframe computers. Prior to that, languages tended to be more specialized: Fortran for scientific computing, COBOL for business computing. PL/1 syntax was more like the formulaic Fortran than the verbose COBOL, but it supported some of the hardware data types that COBOL allowed but Fortran did not (for example, BCD-style arithmetic). It was one of the first major languages to adapt to the new-fangled "structured programming" model that became an essential part of OOP.

It wasn't as popular as Fortran and COBOL (both of which were available for free from IBM, where PL/1 was not), but it did see some commercial use. I worked with it at my first computer job, in fact. It had an optimising compiler (extra-cost) product back when most compilers were non-optimising.

Fred Brooks held it up as a systems programming language in his seminal book The Mythical Man-Month and IBM did, in fact develop a dialect of it called PL/S that was used to write much of the IBM OS/VS operating system code. PL/S was closer to the hardware (vanilla PL/1 code couldn't operate in the specialised internal environment of an operating system). And, alas, for those of us doing OS-level coding outside of IBM, they wouldn't share it. We spent literally years trying to find a suitable equivalent.

As a side note, the Prime Computer company (perhaps best noted for using Dr. Who as a spokesman) had originally designed their hardware to optimally run Fortran, but Fortran has certain limitations such as not being originally designed as a structured programming language nor easily adaptable to that paradigm, so in the 1980s, Prime adapted a dialect of PL/1 to be the new systems  programming language for their OS products. Unlike IBM, they made it available for free to customers.

PL/1 syntax was almost certainly influenced by Algol, though Algol was never very popular in the USA. And from thence we get C and finally Java.

SQL does have primitive a PL/1-like syntax. which wouldn't be surprising since SQL has roots at IBM and IBM has a fairly consistent model for all of the language-like products that they produce such as OS system utilities.

However, having said all that. PL/1 is not PL/SQL nor SQL and any overlaps in keywords between them are purely incidental.

---
* IBM apparently liked the name so much that they also copyrighted PL/2 through PL/99 for future use.
 
Author
Posts: 51
6
  • Number of slices to send:
    Optional 'thank-you' note:
PL/SQL is a procedural extension of SQL. It runs inside the Oracle Database products and was created in the early nineties.
With PL/SQL, you can write procedures that are stored in the database.
Such procedures can be included in packages (similar to Java packages).
Another big benefit of PL/SQL is strong exception handling.
SQL can be embedded in PL/SQL, though there are reasons for not doing this (excessively).
 
Peter Rooke
Bartender
Posts: 1156
20
  • Number of slices to send:
    Optional 'thank-you' note:

was a language developed by IBM


Oh, I never knew that.  Way back I was developing using Informix 4GL/SQL.  Back then Informix were the major rivals to Oracle Highway 101 Billboard and eventually lost out.  
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |