Internal Dokumentation zu: Definition der Tabellen für das auslesen von TC Daten  (C) J.Feuerstein
Erstellt..: 02.04.2013  J.Fes
Stand.....:

http://wiki.plmjobmanager.com/doku.php?id=cap04:plmJobManagerV3_develoment


  Entwicklungsrichtlinien PLMJobManager Produkt:
  ----------------------------------------------

  Grunsätzlich ist die  Grosskleinschreibung zu beachten

  Definitionen der Tabllen:
  - - - - - - - - - - - - -
  infodba.TABELLEN_NAME                  --> infodba. klein
                                         --> den Tabellennamen gross schreiben

  Examle: FROM infodba.PITEMREVISION ir  --> Tabellen alias kein schreiben

  Definition von SQL Parametern:
  - - - - - - - - - - - - - - -
  :para_ParaKey                          --> wird bei MsSQL zu @para_ParaKey

  Definieren eines Datums Paramters:
  - - - - - - - - - - - - - - - - -
  Achtung es ist unbedingt das genaue Format zu verwenden
  WHERE paoIr.plast_mod_date >= TO_DATE(:para_plast_mod_date, 'DD.MM.YYYY HH:MI')


--------------------------------------------------------------------------------
  #New: 07.03.2016/J.Fes
  Ora Charatersets:
  -----------------

  Get from Ora.DB NLS settings:
  SELECT * FROM NLS_DATABASE_PARAMETERS

  Get from Ora.DB Valid values for NLS_CHARACTERSET:
  SELECT * FROM V$NLS_VALID_VALUES WHERE parameter = 'CHARACTERSET’

  Methode Conversion between character sets:
  CONVERT(COLUMN NAME,'NLS_CHARACTERSET','NLS_CHARACTERSET');

  Methode Conversion between character sets: Workaround:
  CONVERT(wso.pobject_desc,'UTF8','WE8ISO8859P1')


--------------------------------------------------------------------------------
  #New: 21.11.2017 18:56/J.Fes
  Extendet Ora - MSSQL Convert Syntax:
  ------------------------------------
  Write into single Lines folowing conventions
  /*MsSQL #MsSQL Syntax# MsSQL*/
  /*Ora #OraSQL Syntax# Ora*/

  #Example:
  ---------

  select *
  /*MsSQL  TOP (1) MsSQL*/
  from Objects_tbl
  where
   ObjectFromSiteID = 'TC91'
  /*Ora  AND ROWNUM <= 1 Ora*/

  For MSSQL Text is finaly:
  select *
   TOP (1)
  from Objects_tbl
  where
   ObjectFromSiteID = 'TC91'

  For OraSQL Text is finaly:
  select *
  from Objects_tbl
  where
   ObjectFromSiteID = 'TC91'
   AND ROWNUM <= 1

