19.08.2021 Views

1546027450-1546027450-sql

Ensina estrutura básica de SQL

Ensina estrutura básica de SQL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SQL – Structured Query Language – rápido e fácil - 113

LTRIM(string, trim_string)

O comando apresentado a seguir:

SELECT LTRIM('

TESTE') FROM DUAL;

Retornará:

-----

TESTE

O comando apresentado a seguir:

SELECT LTRIM('123TESTE','123') FROM DUAL;

Retornará:

-----

TESTE

6.11 RTRIM

A função LTRIM remove todos os caracteres especificados no segundo

parâmetro, do lado direito de uma string (primeiro parâmetro).

RTRIM( string, trim_string)

O comando apresentado a seguir:

SELECT RTRIM('TESTE

') FROM DUAL;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!