Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get first 2 letter in sql

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

fetch first 5 characters of the string in sql

Select SUBSTRING(names,1,5) as studentName from student
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

sql get first letter of string

SELECT * FROM <Table> WHERE LEFT(<columnName>,1) = "s";
Comment

PREVIOUS NEXT
Code Example
Sql :: get first n letter of department name in sql 
Sql :: how to drop a trigger in postgresql 
Sql :: select tables with name like mysql 
Sql :: sql myisam vs innodb 
Sql :: sql query to find duplicate email address 
Sql :: oracle substring 
Sql :: oracle new column 
Sql :: mysql round 
Sql :: install postgresql on raspberry pi 
Sql :: show tables sql 
Sql :: how to create an empty table from an existing table 
Sql :: grant all priviledges to mysql user 
Sql :: reset identity column values in sql server 
Sql :: ORACLE SHOW AVAILABLE DB LINK 
Sql :: best sql course 
Sql :: backup postgres database 
Sql :: How to reset forgotten postgresql password 
Sql :: minus vs intersect in sql 
Sql :: mysqli_connect using prepare statement 
Sql :: mssql how to insert more than 1000 rows 
Sql :: start postgres server 
Sql :: sql decimal to 2 places 
Sql :: datepart postgres 
Sql :: ubuntu reset mysql root password 
Sql :: postgres change column type to uuid 
Sql :: how to use lower case in mysql 
Sql :: date diff sql 
Sql :: sql not equal multiple columns 
Sql :: oracle sql listagg 
Sql :: mamp mysql path mac 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =