I have a data april/2010 to jan/2011
Is there any way to split the data with character to
and select the date as
The value before “to” as FROM
and The Value after “to” as TO
how to selet the splited value……… while i am selecting the data as it is as
select date from mytbl
how to select the date as two values
I have a data april/2010 to jan/2011 Is there any way to split the
Share
If you have your data in a string, like this :
You can use the
explodefunction to get the two parts :Then, just to be sure, if we echo them :
We get :