Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get first 3 letter of department 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 :: mysql login console 
Sql :: remove transient options sql wordpress 
Sql :: get latest record in sql 
Sql :: what is initial catalog in sql connection string 
Sql :: how to get slow query log in mysql 
Sql :: script to add new column in table sql 
Sql :: mysql set primary key 
Sql :: mysql sysdate - 1 day 
Sql :: Step 1: Installing MySQL Client You can install MySQL client directly through pip using the command pip install mysqlclient 
Sql :: show tables postgresql 
Sql :: find logged in users mysql 
Sql :: HOW TO FIND MEDIAN IN SQL FOR BOTH IDD AND EVEN 
Sql :: alter table auto_increment 
Sql :: select all field names for a table mysql 
Sql :: mysql tables max count 
Sql :: create table like sql 
Sql :: how to reset table in sql server 
Sql :: ora-02391 
Sql :: date less than current date sql 
Sql :: sql create table primary key autoincrement 
Sql :: mysql size of table 
Sql :: create database hive 
Sql :: sql check if date is between 2 dates 
Sql :: mysql start command 
Sql :: how to delete a record from sqlite in android 
Sql :: find duplicate keys in mysql 
Sql :: sql server: difference between hashtable and table declared using declare keyword 
Sql :: postgresql cast 
Sql :: limit sqlserver 
Sql :: SHOW COLUMNS Statement 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =