Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get first 3 letters name in sql

SELECT FIRST_NAME ,  SUBSTR(FIRST_NAME, 1 , 3 ) , LENGTH(FIRST_NAME)
FROM EMPLOYEES ; 
Comment

get first 3 letters in sql

-- substr(string, start, [, length ])
SELECT substr('Hello World', 1, 3) ;      -- Hel
SELECT substr('Hello World', 4, 5) ;      -- lo Wo
SELECT substr('Hello World', 4);          -- lo World
SELECT substr('Hello World', -3);         -- rld
Comment

PREVIOUS NEXT
Code Example
Sql :: login to mysql 
Sql :: go install mysql 
Sql :: sql convert unix time to date 
Sql :: oracle create program if not exists 
Sql :: how to delete row in sql 
Sql :: create column sql 
Sql :: Database "mem:testdb" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149 (Help) 
Sql :: mysql sysdate 
Sql :: copy sql table to new table 
Sql :: show all public tables sql 
Sql :: alter table oracle 
Sql :: sql server date now 
Sql :: ostgreSQL version 
Sql :: create function in microsoft sql server 
Sql :: mysql select last 10 rows 
Sql :: can you use a where clause for a child query 
Sql :: sql server: select column values as comma separated string 
Sql :: oracle sessions_per_user 
Sql :: sql to char function with date 
Sql :: epoch time converter in snowflake 
Sql :: show column from sql server 
Sql :: show procedures mysql 
Sql :: how to create new user and database postgresql in ubuntu 
Sql :: postgresql today - 1 year 
Sql :: create new table from existing table with data in sql server 
Sql :: postgres type cast to string 
Sql :: oracle show index columns 
Sql :: mysql docker image for macbook m1 
Sql :: calculate distance between two latitude longitude postgresql 
Sql :: running percentage of total postgres 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =