Du bist hier: Snippet-Verzeichnis » Datenbanken (26)
Sprache:

Snippet-Verzeichnis - Datenbanken 

Snippets

Count of Distinct fields in a table

This is goodfor getting a count of the instances of a value in a table. eg. How many Addresses in the table are from each state?

Sprache: English | Programmiersprache: SQL | Autor: wapu [nicht registriert]

Delete duplicate rows

This will delete duplicate rows in a table. Excellent maintenance script.

Sprache: English | Programmiersprache: SQL | Autor: haighis [nicht registriert]

Duplikate finden

Das folgende Statement liefert alle Duplikate in einer Tabelle und die Anzahl derer:

Sprache: Deutsch | Programmiersprache: SQL | Autor: Thomas

Find Duplicates in a field

Returns duplicates for a field.

Sprache: English | Programmiersprache: SQL | Autor: pjjt [nicht registriert]

Find wholes in letter/number sequences using self-joins

If you have a data dictionary at your work and you want to add a new list of values requiring [for example] 7 elements, then you can either start your elements at the very end of the dictionary [select max(id)+1] or you can use these SQL ...

Sprache: English | Programmiersprache: SQL | Autor: vic4 [nicht registriert]

move_indexes.sql

Relocates indexes in an Oracle tablespaceto any other tablespace. When run inSQL*Plus the script displays all tablespacesthat contain indexes. The script thenprompts for the source tablespace and thedestination tablespace. When finished ...

Sprache: English | Programmiersprache: SQL | Autor: buzzwang [nicht registriert]

Output table/row comments (Oracle 8+)

Outputs a description of all tables with a given owner. Will list any comments associated with the selected table/column. This is an Oracle-specific stored-proc.

Sprache: English | Programmiersprache: SQL | Autor: hwaite [nicht registriert]

Predeccesor and successor detection in different-collation s

Predeccesor and successor detection in different-collation supporting db systems.

Sprache: English | Programmiersprache: SQL | Autor: vnrg [nicht registriert]

Quick and dirty Oracle export/import

The code creates a script of insert statements for the existing data within a table. The generated script can then be run to re-populate the table.

Sprache: English | Programmiersprache: SQL | Autor: jujiro [nicht registriert]

Time to UNIX timstamp conversion functions for Oracle

The functions allow the conversion of a date to timestamp and vice-versa in Oracle

Sprache: English | Programmiersprache: SQL | Autor: vikaas_bv [nicht registriert]
RSS