Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get first 3 letters 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

sql first character

Select First two Character in selected Field with Left(string,Number of Char in int)

SELECT LEFT(FName, 2) AS FirstName FROM dbo.NameMaster
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 :: PL SQL VARRAY of records 
Sql :: get initial in sql 
Sql :: how to write lowercase in sql 
Sql :: add not null constraint sql server 
Sql :: NVL() Functions 
Sql :: mysql count rows returned 
Sql :: mysql connectiion timeout 
Sql :: oracle nvl2 
Sql :: select from select sql server 
Sql :: oracle simple quote 
Sql :: show details of table postgres 
Sql :: declare value in sql 
Sql :: add foreign key to existing table postgres 
Sql :: how to declare a variable in sql 
Sql :: get table column names sql 
Sql :: sql online 
Sql :: consecutive numbers sql 
Sql :: mysql on duplicate key ignore 
Sql :: postgresql concat string with separator 
Sql :: postgresql regex extract a word from string 
Sql :: create foreign key postgres 
Sql :: mysql command 
Sql :: difference between normalization and denormalization 
Sql :: how to make case insensitive in sql 
Sql :: initcap in sql 
Sql :: sql pivot without aggregate 
Sql :: multiple order by sql 
Sql :: close external port 3306 with iptables 
Sql :: sql to c# model 
Sql :: declare date variable sql 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =