Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle substring

-- ORACLE substr(string, start, [, length ])
SELECT substr('Hello World', 4, 5) FROM DUAL;       -- lo Wo
SELECT substr('Hello World', 4) FROM DUAL;          -- lo World
SELECT substr('Hello World', -3) FROM DUAL;         -- rld
SELECT substr('Hello World', -3, 2) FROM DUAL;      -- rl
Comment

ORACLE SUBSTRING SYNTAX

-- ORACLE SQL - Get the 2 digits at the right end of a string
SELECT SUBSTR('TN0001234567890345',-2) FROM DUAL;

Comment

PREVIOUS NEXT
Code Example
Sql :: sql alter table statement 
Sql :: sql cast to integer 
Sql :: oracle alter table add column not null 
Sql :: how to update column name in psql 
Sql :: sous requete sql 
Sql :: sql to char 
Sql :: how to select all attributes from a row if there is a certain string in it MySQL 
Sql :: postgres first_value in gropby 
Sql :: query concatenate 
Sql :: grant mysql 
Sql :: add new column not null sql server 
Sql :: mysql safe mode 
Sql :: t sql check column exists 
Sql :: oracle sql group by date year 
Sql :: mysql previous year 
Sql :: insert if not exists postgresql 
Sql :: how to check if the view exists in sql server 
Sql :: docker run mysql image 
Sql :: mysql get random data 
Sql :: convert date to datetime sql 
Sql :: show data in table postgres 
Sql :: how to create new user and database postgresql in ubuntu 
Sql :: ubuntu reset mysql root password 
Sql :: SET NOCOUNT ON; 
Sql :: change postgress password 
Sql :: how to sort names in alphabetical order in sql 
Sql :: get value from a table an insert it with other values in another table sql 
Sql :: How to Find Duplicate Values in a SQL Table 
Sql :: mysql else if 
Sql :: sql merge 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =