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

how to fetch first 5 characters in sql

Select SUBSTRING(StudentName,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

PREVIOUS NEXT
Code Example
Sql :: add column with foreign key constraint sql server 
Sql :: django mssql backend 
Sql :: get count of duplicate records 
Sql :: how to sort names in alphabetical order in sql 
Sql :: python sqlalchemy connection show server 
Sql :: sql order by where condition 
Sql :: float precision in psql 
Sql :: oracle auto increment primary key 
Sql :: mysql set value as null 
Sql :: oracle trigger after logon on schema 
Sql :: find a column in all tables mysql 
Sql :: show all database inside postgresql 
Sql :: mysql else if 
Sql :: sqlite woth cmake 
Sql :: oracle insert or update 
Sql :: oracle insert into 
Sql :: pl/sql cursor 
Sql :: how to find database collation in postgres 
Sql :: sql_calc_found_rows 
Sql :: drop table if exists test 
Sql :: sql declare table variable 
Sql :: mysql multiple count 
Sql :: list of all table names in sql server databse 
Sql :: mysql where not equal 
Sql :: how to check table exists or not in postgresql 
Sql :: mysql event last execution 
Sql :: how to check table lock 
Sql :: how to insert json value in mysql 
Sql :: sql server datetime to string 
Sql :: getdate function in postgresql 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =