473,507 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

string function which works like stringtocknizer(java)

2 New Member
hello frnds
am new to mysql.i wan to separate my string.In java we have same function stringtocknizer..is there any function available in mysql ?
Mar 17 '08 #1
3 1301
ronverdonk
4,258 Recognized Expert Specialist
Welcome to The Scripts!

Since lots of members in this forum do not know Java, it is better to explain what you want to achieve with this function.

Ronald
Mar 17 '08 #2
urvekshah
2 New Member
Welcome to The Scripts!

Since lots of members in this forum do not know Java, it is better to explain what you want to achieve with this function.

Ronald
stringtocknizer function parse string in to tokens by specified our deimiter..

for ex: str1=a,b,c,d,e,f;
stringtocknizer( a , ' , ' );
this function find all substring sepreted by ,
so while(nextocken())
returns substrings separeted by ,
Mar 17 '08 #3
ronverdonk
4,258 Recognized Expert Specialist
There are a couple of these functions in PHP. Look at explode funtion which splits that string into an array.
E.g.[php]$str = 'one|two|three';
print_r(explode('|', $str));
[/php]results in an array $str
Expand|Select|Wrap|Line Numbers
  1. Array
  2. (
  3.     [0] => one
  4.     [1] => two
  5.     [2] => three
  6. )
See the php manual on other functions.

Ronald
Mar 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
12308
by: Thomas Rokamp | last post by:
Hi! I'm testing a russian webpage with HttpUnit, but it seems, that it doesn't support the encoding (Win-1251). How can I add support for this in Java or HttpUnit? ...
4
1835
by: Don Grover | last post by:
I hope some one can help, I have a html table that is created with asp that has a row of repeated buttons down the side. these call a page passing a query string with invoice number. I need to...
0
1160
by: Andrej | last post by:
hi, i have a java webservice which i would like to invoke from .net Application. i am able to generate the proxy class, but if i try to invoke the webservice i got an exception of type...
0
1871
by: snkssa | last post by:
Hi, I got the following error while building an application with ant. please can you give the solution or reason why it is failing? Thank you create_zip_linux: ...
1
2719
by: marty.gagnon | last post by:
I have a xsl file that references a xml file using the document() function. I'm having trouble specifying the URI in the document() function of a xls stylesheet. I'm using java to transform the...
0
3249
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
2
1525
JavaStudent07
by: JavaStudent07 | last post by:
H:\>c:\j2sdk1.4.1\bin\javac.exe BubbleSort.java H:\>c:\j2sdk1.4.1\bin\java.exe BubbleSort Please input the name of the file from which the data will be acquired. Be sure to use the entire path....
11
7678
by: hamiltongreg | last post by:
I am new to Java and am having problems getting my program to compile correctly. My assignment is as follows; Choose a product that lends itself to an inventory (for example, products at your...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.