13.07.2015 Views

David M. Kroenke and David J. Auer Database Processing: SQL for ...

David M. Kroenke and David J. Auer Database Processing: SQL for ...

David M. Kroenke and David J. Auer Database Processing: SQL for ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Embedding <strong>SQL</strong> in Program Code• <strong>SQL</strong> can be embedded in triggers, stored procedures,<strong>and</strong> program code.• Problem: assigning <strong>SQL</strong> table columns with programvariables.• Solution: object-oriented programming, PL/<strong>SQL</strong>.• Problem: paradigm mismatch between <strong>SQL</strong> <strong>and</strong>application programming language:– <strong>SQL</strong> statements return sets of rows; an application works on onerow at a time.• Solution: process the <strong>SQL</strong> results as pseudo-files.KROENKE AND AUER - DATABASE PROCESSING, 11th Edition© 2010 Pearson Prentice Hall7-42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!