Hi Friends,
How to split a character which is separated by (:) operator like OUT/1234: SO/14-15/345.I need output as SO/14-15/345 by only using sql query.Please help me in this situation.Thanks in advance.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi Friends,
How to split a character which is separated by (:) operator like OUT/1234: SO/14-15/345.I need output as SO/14-15/345 by only using sql query.Please help me in this situation.Thanks in advance.
select substring(column_name, position(':' in column_name)+1, length(column_name)) from table_name
Hello vadivel,
Try this query.
select *,
substring(dat,1,charindex('-',dat)-1) as Section,
substring(dat,charindex('-',dat)+1,charindex('-',dat)-1) as TownShip,
reverse(substring(reverse(dat),0,charindex('-',reverse(dat)))) as myRange
from myTable;
I hope it's work.
Thank you.
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
يونيو 18
|
5652 | ||
|
0
ديسمبر 15
|
3309 | ||
|
1
نوفمبر 22
|
4704 | ||
|
2
مايو 22
|
33058 | ||
|
1
أكتوبر 21
|
2810 |