CSVENCODE
Sintassi
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> CSVENCODE[CSVENCODE]:::quoted
CSVENCODE --> End((END))
Scopo
La funzione SQL CSVENCODE restituisce il testo di input codificato come CSV in conformità con RFC 4180:
- separatore di campo
, - separatore di record CR, LF e CR/LF
- carattere di virgolettatura
" - carattere di virgolettatura con escape
\" - nessuna intestazione
Vedi anche CSVDECODE.
Parametri:
- Input (
varchar2): l'input che verrà codificato in CSV a partire dal testo.
Restituisce: un testo che è l'input codificato come CSV come varchar2.
Esempi
Il seguente esempio recupera la rappresentazione CSV del valore a,b,c,d:
select csvencode('a,b,c,d')
----------------
"a,b,c,d"
Il seguente esempio recupera la rappresentazione CSV del valore text:
select csvencode('text')
----------------
text