Anda bisa menycoba menggunakan fungsi :
1. SUBSTRING
Friday, August 10, 2012
Monday, August 6, 2012
mengambil suku kata terakhir dari string SQL Server
Fungsi yang digunakan adalah substring:
contoh :
contoh :
select top 5 substring(em_emplname,
charindex(' ',em_emplname)+1 ,
len(em_emplname)) as [Last Name]
from tbmst_Employee where em_emplcode = 20935
charindex(' ',em_emplname)+1 ,
len(em_emplname)) as [Last Name]
from tbmst_Employee where em_emplcode = 20935
Subscribe to:
Posts (Atom)
About Me
|