Está en la página 1de 2

SQL Cheatsheet http://www.3gwt.net/demo/SQL_redux.

html

My SQL Problems? Find bad queries and tables. Improve performance. Free download. www.jetprofiler.com

PL/SQL Developer Professional PL/SQL Development IDE Trial version available www.allroundautomations.com

Ads by Google SQL Cheatsheet


SQL
Oracle Free Entity SQL KEY
Download PL SQL ---
Database SQL Query Curly braces group alternatives together,
and alternatives are separated by pipes: {this | that | t'other}
Clauses in brackets are optional: You [and john] can come.
Sybase MDA Tables An asterisk indicates 0 or more instances: I like to eat[ and eat]*.
eCourse A plus-sign indicates 1 or more instances: Run fast,[ go]+!
Troubleshoot problem A plus-sign also indicates addition: select (1 + 3) from dual;
queries in ASE Fix
Elements are defined in terms of other elements.
bottlenecks improve <number> : [0-9]+ means that a number is composed of one or more digits.
performance <datatype>: {integer | char(<number>) | varchar2(<number>) | date}
www.isug.com/mdatraining means that a <datatype> element is one of the four strings shown.
ClearDB 2.5 - <column-set>: <column> = <expression>
Documenter means that a <column-set> element is composed of a <column>, followed by
47 schema and an equals sign and an <expression>.
non-schema DB
Readability of PL/SQL is much improved by highlighting certain keywords;
objects PL/SQL
this is why some word are in all caps. quick payday loans ---
Flowcharts, Diagrams
& CRUD INSERTS and UPDATES
InDesign DB -------------------
<insert>: insert into <tablename> [<columns>] {values <values> | <select>}
Publishing
<select>: select [distinct] <columns> from <tables> [<where>] [group-by]
EasyCatalog™ - a <select-union>: <select> union <select> [<order-by>]
complete database <select-order>: <select> <order-by>
publishing solution
www.65bit.com <update> : update <tablename> set <column-set> [, <column-set>] [<where>]
<column-set>: <column> = <expression>
NIIT™ Oracle <update-from-query>: update <tablename> set <columns> = <select> [<where>]
Courses
Beginner & FUNDAMENTALS
Intermediate Oracle ------------
Courses designed for <name> : [a-zA-Z][a-zA-Z0-9_]* - that is, a string of alphanumeric chars
and underscores starting with an alpha char.
Engineers.
<number> : [0-9]+
NIIT.com/Oracle-Training
<datatype>: {integer | char(<number>) | varchar2(<number>) | date}
SharePoint to SQL <ora-alias>: a temporary nickname for a table or column, for the purposes
Replicate SharePoint of condensing a query.
lists and libraries to
normalised SQL tables LITERALS
www.axioworks.com/SQList --------
<value> : {<number> | <string> | <number-expr> | <string-expr>}
<values> : ( <value> [, <value>]* )
<number-expr>: {<number> | <column-name>} + [<number> | <column-name>]*
<string-expr>: {<string> | <column-name>} || [<string> | <column-name>]*

NAMES and DEFINITIONS


---------------------
<column-name>: name of a column in a table in the current scope
<columns> : ( <column-name> <ora-alias> [, <column-name> <ora-alias>]* )
<new-column> : <name> <column-def>
<new-columns>: <new-column> [, <new-column>]*
<column-def> : <datatype> [default <value>] [<constraint>]*

<table-name> : name of a table in the current scope


<tables> : <table-name> <ora-alias> [, <table-name> <ora-alias>]*

<constraint> : {not null | primary key | references <table-name>}

cheap life insurance rates

1 of 2 10-09-23 10:11 AM
SQL Cheatsheet http://www.3gwt.net/demo/SQL_redux.html

CREATION
--------
<create-table-new> : create table <name> ( <new-columns> )
<create-table-from>: create table <name> as <select>

<create-tablespace>: create tablespace <name> datafile '<filespec>'


size 50m autoextend on default storage (pctincrease 1);
<filespec> : /opt/ora8/m02/oradata/ora8/<name>01.dbf

<create-user> : create user <name> identified by <db-password>


default tablespace <name> temporary tablespace temp quota
unlimited on <name>;
<grant-user> : grant connect, resource, ctxapp to <name>;
grant javasyspriv to <name>;

ADDING, DROPPING, AND DELETION


------------------------------
<add-column> : alter table <table-name> add ( <new-columns> )
<drop-column>: alter table <table-name> drop column <column-name>

<drop> : drop {table|view|sequence|function} <name>


<delete>: delete from <table-name> [<where>]

PL-SQL BASICS
-------------
<var-name> : A variable passed into a function, or definied in <declarations>
<argument> : <name> IN <datatype>
<arguments>: <argument> [, <argument>]*
Ads by Google
<args> : <value> [, <value>]*
Jobs in SQL PL SQL
SQL Command Tutorial PL-SQL
SQL PLSQL Jobs ------
<create-function>: create or replace function <name> ( <arguments> )
Syntax for SQL
return <datatype> AS [<declarations>] BEGIN <function-body> END;
Ads by Google
<declarations> : <name> <datatype>[:= <value>];
Oracle and SQL Server
<function-body>: [{<statement> | <loop>};]*
SQL Copy Table Data return {<var-name> | <value>};
Linq to SQL Table
SQL String Functions <statement>: { <var-name> := {<expression> | <function>} |
open cursor <cursor-name> |
fetch <cursor-name> into <var-name>} |

<loop> : LOOP [{<statement> | <loop>};]*


exit when <condition>
END LOOP;

<ora-call-function>: select <name>(<args>) from dual;

20 lakh IT jobs
Get a global career through Aptech Work in
the IT field of your choice
www.Aptech-Education.com

return to 3gwt index

2 of 2 10-09-23 10:11 AM

También podría gustarte