Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle leftmost characters

-- For Oracle only

-- syntax 
SUBSTR(<main-string>,1,<number-of-characters>)

-- example 
SUBSTR('Useless stuff',1,10) -- OUTPUT: Useless st

-- practical example
SELECT SUBSTR('Useless stuff',1,10)
FROM DUAL;
Comment

PREVIOUS NEXT
Code Example
Sql :: copy value from one column to another postgres 
Sql :: install mysql on ubuntu 
Sql :: sql drop procedure 
Sql :: rename table sql server 
Sql :: do postgresql 
Sql :: sql server convert date to weekday 
Sql :: postgresql create role 
Sql :: Select without null values sql 
Sql :: postgres select duplicate columns 
Sql :: Check database restore status sql script 
Sql :: how to find third highest salary in sql 
Sql :: sql running total 
Sql :: postgresql delete limit 
Sql :: Parsing XML IN SQL Server 
Sql :: if in mysql 
Sql :: how to get 30 days previous date in mysql 
Sql :: add multiple row table pl sql 
Sql :: create table in mysql mariadb primary key foreign key 
Sql :: sql server previous month 
Sql :: osx stop mysql service 
Sql :: how to change column name in mysql 
Sql :: mysql order by 
Sql :: 11:04:35 PM [mysql] Error: MySQL shutdown unexpectedly. 11:04:35 PM [mysql] This may be due to a blocked port, missing dependencies, 
Sql :: FIND AVERAGE SALARY EARNER IN SQL 
Sql :: how to view created temporary tables in mysql 
Sql :: replace divide by zero error with 0 in sql 
Sql :: SQL CASE With ELSE in SQL 
Sql :: show oracle parameters 
Sql :: postgres order by month 
Sql :: how to run sql server on mac 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =