Tec&Cult
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Tec&Cult

Technologie et Culture
 
AccueilAccueil  PortailPortail  GalerieGalerie  Dernières imagesDernières images  RechercherRechercher  S'enregistrerS'enregistrer  Connexion  
Rechercher
 
 

Résultats par :
 
Rechercher Recherche avancée
Derniers sujets
» Que faire à Paris le week-end du 15 août ?
Character/String Functions EmptyJeu 11 Aoû - 11:20 par Admin

» T-shirt Mec de Paname
Character/String Functions EmptyMer 3 Aoû - 17:04 par Admin

» dating web site uk dating free parent single
Character/String Functions EmptyMer 3 Aoû - 10:56 par Invité

» rsvp dating website seeking bisexual
Character/String Functions EmptyLun 1 Aoû - 2:08 par Invité

» dating french woman gay bottom seeking tops
Character/String Functions EmptyDim 31 Juil - 21:59 par Invité

» dating philippine woman man seeking wealthy woman
Character/String Functions EmptyVen 29 Juil - 12:51 par Invité

» dating lesbian n r cacee cobb dating lachey nick
Character/String Functions EmptyVen 29 Juil - 3:17 par Invité

» single dating chat room relationship dating advice
Character/String Functions EmptyJeu 28 Juil - 0:21 par Invité

» скачать порно тетя скачать порнофото семейное
Character/String Functions EmptyJeu 21 Juil - 14:34 par Invité

Navigation
 Portail
 Index
 Membres
 Profil
 FAQ
 Rechercher
Forum
Partenaires
Forum gratuit


Tchat Blablaland
-27%
Le deal à ne pas rater :
PC Portable 17” LENOVO Ideapad 3 – 12 Go/512Go – AMD Ryzen 5
399.99 € 549.99 €
Voir le deal

Partagez | 
 

 Character/String Functions

Voir le sujet précédent Voir le sujet suivant Aller en bas 
AuteurMessage
Admin
Admin


Messages : 156
Date d'inscription : 20/05/2010

Character/String Functions _
MessageSujet: Character/String Functions   Character/String Functions EmptyVen 5 Nov - 12:58

http://toptech.geekaddict.net/
Character/String Functions

Function Description Example
substr(src, p, l) Returns a portion of src starting at position p and l char. long substr('Hello',3,2) = 'll'
upper Converts to uppercase upper('Hello') = 'HELLO'
lower Converts to lowercase lower('HELLO') = 'hello'
initcap Capitalizes the first character or each word initcap('HELLO, world!') = 'Hello, World!'
ltrim Removes blanks at the left-end of a string ltrim(' Hello ') = 'Hello '
rtrim Removes blanks at the right-end of a string rtrim(' Hello' ) = ' Hello'
trim Removes blanks at either ends of a string trim(' Hello ') = 'Hello'
concat Concatenates two strings concat('Hel', 'lo') = 'Hello'
length Returns the length of a string length('Hello') = 5
replace(src, x, y) Replaces every occurrence of x in src by y (or by nothing if y is absent) replace('Hello', 'll', 'r') = 'Hero'
replace('Hello', 'o') = 'Hell'
lpad(src, l, p) Returns src, left-padded to length n with the string p lpad('Hello', 10, '>') = '>>>>>Hello'
rpad(src, l, p) Returns src, right-padded to length n with the string p rpad('Hello', 10, '!') = 'Hello!!!!!'
chr Returns a character's code chr('H') = 72
soundex Computes the soundex phonetic value of a string
translate Replaces each char. from x in src by the corresponding char. in y translate('hello', 'hl', 'HL') = 'HeLLo'
nls_initcap Same as initcap with National Language Support (NLS)
nls_upper Same as upper with National Language Support (NLS) nls_upper('Café) = CAFÉ
nls_lower Same as lower with National Language Support (NLS)
Date & Time Functions

Function Description Example
sysdate Returns the current date and time
trunc(d, t) Trancates a date d to the nearest time unit t (by default to the nearest day)
round(d, t) As before, but using rounding select round(sysdate) from dual
add_months(d, n) Returns d plus n months add_months(sysdate, 6)
months_between(d1, d2) Returns the number of months between dates d1 and d2
from_tz(d, tz) Adds a timezone component tz to date d
last_day(d) Returns the last day of the month containing d last_day(sysdate)
Revenir en haut Aller en bas
http://toptech.geekaddict.net
 

Character/String Functions

Voir le sujet précédent Voir le sujet suivant Revenir en haut 
Page 1 sur 1

Permission de ce forum:Vous ne pouvez pas répondre aux sujets dans ce forum
Tec&Cult :: Informatique :: Oracle :: Oracle PL SQL-
Sauter vers: