CONTENT
  • CHANGES
Szukaj
counter

#top Zapytania SQL



#top users


#top USER CREATE


Zobacz także USER CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_8003.htm

Składnia:
comment

Example:
-- comment



#top USER ALTER


Zobacz także USER ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_4003.htm

Składnia:
comment

Example:
-- comment


#top USER SET PASSWORD


Zobacz także USER SET PASSWORD dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_1005.htm
https://docs.oracle.com/html/E26088_01/statements_8010.htm

Składnia:
comment

Example:
-- comment



#top USER DROP


Zobacz także USER DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9008.htm

Składnia:
comment

Example:
-- comment



#top permissions


#top GRANT


Zobacz także GRANT dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9013.htm

Składnia:
comment

Example:
-- comment



#top REVOKE


Zobacz także REVOKE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9020.htm

Składnia:
comment

Example:
-- comment



#top SHOW GRANTS


Zobacz także SHOW GRANTS dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:


Składnia:
comment

Example:
-- comment



#top databases


#top DATABASE CREATE


Zobacz także DATABASE CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_5004.htm

Składnia:
comment

Example:
-- comment



#top DATABASE ALTER


Zobacz także DATABASE ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_1004.htm

Składnia:
comment

Example:
-- comment



#top DATABASE DROP


Zobacz także DATABASE DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_8009.htm

Example:
-- comment



#top schemas


#top SCHEMA CREATE


Zobacz także SCHEMA CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_6014.htm

Składnia:
comment

Example:
-- comment



#top SCHEMA ALTER


Zobacz także SCHEMA ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:


Składnia:
comment

Example:
-- comment



#top SCHEMA DROP


Zobacz także SCHEMA DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:


Składnia:
comment

Example:
-- comment



#top tablespaces


#top TABLESPACE CREATE


Zobacz także TABLESPACE CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_7003.htm

Składnia:
comment

Example:
-- comment



#top TABLESPACE ALTER


Zobacz także TABLESPACE ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_3002.htm

Składnia:
comment

Example:
-- comment



#top TABLESPACE DROP


Zobacz także TABLESPACE DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9004.htm

Składnia:
comment

Example:
-- comment



#top tables


#top TABLE CREATE


Zobacz także TABLE CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_7002.htm

Składnia:
comment


#top TABLE CREATE LIKE


Zobacz także TABLE CREATE LIKE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
CREATE TABLE temp_table_like LIKE temp_table;


#top TABLE CREATE AS


Zobacz także TABLE CREATE AS dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
Nie jest to wierna kopia struktury originalnej tabeli !!!
-- comment


#top TABLE CREATE with PRIMARY KEY


Zobacz także TABLE CREATE with PRIMARY KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with auto_increment


Zobacz także TABLE CREATE with auto_increment dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with UNIQUE KEY (singlecolumn)


Zobacz także TABLE CREATE with UNIQUE KEY (singlecolumn) dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with UNIQUE KEY (multicolumn)


Zobacz także TABLE CREATE UNIQUE KEY (multicolumn) dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with FULLTEXT KEY


Zobacz także TABLE CREATE with FULLTEXT KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with FOREIGN KEY


Zobacz także TABLE CREATE with FOREIGN KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with INDEX


Zobacz także TABLE CREATE with INDEX dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with partitioned


Zobacz także TABLE CREATE with partitioned dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with COLLATE without UNIQUE


Zobacz także TABLE CREATE with COLLATE without UNIQUE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE CREATE with COLLATE with UNIQUE


Zobacz także TABLE CREATE with COLLATE with UNIQUE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment



#top TABLE ALTER


Zobacz także TABLE ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_3001.htm

Składnia:
comment


#top TABLE ALTER with PRIMARY KEY


Zobacz także TABLE ALTER with PRIMARY KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with auto increment


Zobacz także TABLE ALTER with auto_increment dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with UNIQUE KEY (singlecolumn)


Zobacz także TABLE ALTER with UNIQUE KEY (singlecolumn) dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with UNIQUE KEY (multicolumn)


Zobacz także TABLE ALTER UNIQUE KEY (multicolumn) dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with FULLTEXT KEY


Zobacz także TABLE ALTER with FULLTEXT KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with FOREIGN KEY


Zobacz także TABLE ALTER with FOREIGN KEY dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with INDEX


Zobacz także TABLE ALTER with INDEX dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with partitioned


Zobacz także TABLE ALTER with partitioned dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with COLLATE without UNIQUE


Zobacz także TABLE ALTER with COLLATE without UNIQUE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment


#top TABLE ALTER with COLLATE with UNIQUE


Zobacz także TABLE ALTER with COLLATE with UNIQUE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Example:
-- comment



#top TABLE RENAME


Zobacz także TABLE RENAME dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_3001.htm

Składnia:
comment

Example: rename table
ALTER TABLE oldname RENAME TO newname;



#top TABLE TRUNCATE


Zobacz także TABLE TRUNCATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_10007.htm

TRUNCATE TABLE empties a table completely. Logically, this is equivalent to a DELETE statement that deletes all rows, but there are practical differences under some circumstances.

Składnia:
comment

Example:
-- comment



#top TABLE DROP


Zobacz także TABLE DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9003.htm

Składnia:
comment

Example:
-- comment



#top sequences


#top SEQUENCE CREATE


Zobacz także SEQUENCE CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_6015.htm

Składnia:
comment

Example:
-- comment



#top SEQUENCE ALTER


Zobacz także SEQUENCE ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_2012.htm

Składnia:
comment

Example:
-- comment



#top SEQUENCE DROP


Zobacz także SEQUENCE DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_9001.htm

Składnia:
comment

Example:
-- comment



#top indexes


#top INDEX CREATE


Zobacz także INDEX CREATE dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_5012.htm

Składnia:
comment

Example: alter table add INDEX
-- comment



#top INDEX ALTER


Zobacz także INDEX ALTER dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_1010.htm

Example: alter table add INDEX
-- comment



#top INDEX DROP


Zobacz także INDEX DROP dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/statements_8017.htm

Składnia:
comment

Example: alter table drop INDEX
-- comment



#top functions


#top Functions and Operators


Zobacz także Functions and Operators dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/html/E26088_01/functions.htm

Example:
-- comment



#top DATA Manipulations


#top SELECT with LIMIT and OFFSET


Zobacz także SELECT with LIMIT and OFFSET dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:
https://docs.oracle.com/database/122/SQLRF/SELECT.htm#GUID-CFA006CA-6FF1-4972-821E-6996142A51C6__BABBADDD

Składnia:
comment

Example:
-- comment

Po wykonaniu powyższych zapytań mających na celu utworzenie tabeli oraz dodaniu przykładowych danych można wykonać poniższe zapytania w celu sprawdzenia działania klauzul LIMIT przy wyświetlaniu danych z tabeli:
-- comment

Uzyskany rezultat powinien być analogiczny do poniższego:
comment


Po wykonaniu powyższych zapytań mających na celu utworzenie tabeli oraz dodaniu przykładowych danych można wykonać poniższe zapytania w celu sprawdzenia działania klauzul LIMIT oraz OFFSET przy wyświetlaniu danych z tabeli:
-- comment

Uzyskany rezultat powinien być analogiczny do poniższego:
comment



#top WHERE IN subselect with multiple columns


Zobacz także WHERE IN subselect with multiple columns dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase



#top Deleting duplicates rows


Zobacz także Deleting duplicates rows dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase



#top REPLACE INTO


Zobacz także REPLACE INTO dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:

REPLACE INTO equivalent
----------------------------------------------
Use "merge into":
MERGE INTO employees USING dual ON ( "id"=123456 )
    WHEN MATCHED THEN
        UPDATE SET "last_name"="smith" , "first_name"="bob"
    WHEN NOT MATCHED
        THEN INSERT ("id","last_name","first_name") VALUES ( 123456,"smith", "bob" )



#top GROUP with CONCAT


Zobacz także REPLACE INTO dla: PostgreSQL | MySQL | Firebird | SQLite | MsSQL | Oracle | DB2 | Informix | Sybase

Dokumentacja Oracle:

Składnia:
-- comment










































Zmodyfikowany ostatnio: 2017/11/01 23:59:30 (6 lat temu), textsize: 38,1 kB, htmlsize: 77,4 kB

Zapraszam do komentowania, zgłaszania sugestii, propozycji, własnych przykładów, ...
Dodaj komentarzKomentarze użytkowników